MCPcopy
hub / github.com/gorilla/mux / Handle

Method Handle

mux.go:294–296  ·  view source on GitHub ↗

Handle registers a new route with a matcher for the URL path. See Route.Path() and Route.Handler().

(path string, handler http.Handler)

Source from the content-addressed store, hash-verified

292// Handle registers a new route with a matcher for the URL path.
293// See Route.Path() and Route.Handler().
294func (r *Router) Handle(path string, handler http.Handler) *Route {
295 return r.NewRoute().Path(path).Handler(handler)
296}
297
298// HandleFunc registers a new route with a matcher for the URL path.
299// See Route.Path() and Route.HandlerFunc().

Callers 1

TestContextMiddlewareFunction · 0.95

Calls 3

NewRouteMethod · 0.95
HandlerMethod · 0.80
PathMethod · 0.45

Tested by 1

TestContextMiddlewareFunction · 0.76