func healthHandler()

in integration-test/webserver/main.go [137:149]


func healthHandler(w http.ResponseWriter, r *http.Request, arguments *[]string) {
	log.Printf("Arguments: %v, len: %v", arguments, len(*arguments))
	statusCode, responseBody := HandleFlag((*arguments)[0])
	*arguments = (*arguments)[1:]

	w.WriteHeader(statusCode)
	w.Header().Set("Content-Type", "application/json")
	respBody, err := json.Marshal(responseBody)
	if err != nil {
		log.Printf("Error happened in JSON marshal. Err: %s", err)
	}
	w.Write(respBody)
}