MCPcopy Create free account
hub / github.com/docker/go-plugins-helpers / HandleFunc

Method HandleFunc

sdk/handler.go:86–88  ·  view source on GitHub ↗

HandleFunc registers a function to handle a request path with.

(path string, fn func(w http.ResponseWriter, r *http.Request))

Source from the content-addressed store, hash-verified

84
85// HandleFunc registers a function to handle a request path with.
86func (h Handler) HandleFunc(path string, fn func(w http.ResponseWriter, r *http.Request)) {
87 h.mux.HandleFunc(path, fn)
88}

Callers 6

initMuxMethod · 0.95
initMuxMethod · 0.95
handleMethod · 0.95
initMuxMethod · 0.95
initMuxMethod · 0.95
NewHandlerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected