HTTP handler
An HTTP handler is a component that receives an HTTP request and writes an HTTP response. In Go's net/http package, a handler implements the ServeHTTP method defined by http.Handler.
Minimal example
func health(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
_, _ = w.Write([]byte("ok"))
}