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

Method Handler

route.go:128–133  ·  view source on GitHub ↗

Handler -------------------------------------------------------------------- Handler sets a handler for the route.

(handler http.Handler)

Source from the content-addressed store, hash-verified

126
127// Handler sets a handler for the route.
128func (r *Route) Handler(handler http.Handler) *Route {
129 if r.err == nil {
130 r.handler = handler
131 }
132 return r
133}
134
135// HandlerFunc sets a handler function for the route.
136func (r *Route) HandlerFunc(f func(http.ResponseWriter, *http.Request)) *Route {

Callers 4

HandlerFuncMethod · 0.95
HandleMethod · 0.80
TestWalkSingleDepthFunction · 0.80
TestWalkErrorHandlerFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestWalkSingleDepthFunction · 0.64
TestWalkErrorHandlerFunction · 0.64