Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FallbackHandler http.Handler = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { m := GetMux(r.Context()) for method := range m { if method != "" { w.Header().Add("Allow", method) } } http.Error(w, http.StatusText(http.StatusMethodNotAllowed), http.StatusMethodNotAllowed) })
FallbackHandler is the default fallback handler if no method matched
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.