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

Function NewHandler

network/api.go:215–219  ·  view source on GitHub ↗

NewHandler initializes the request handler with a driver implementation.

(driver Driver)

Source from the content-addressed store, hash-verified

213
214// NewHandler initializes the request handler with a driver implementation.
215func NewHandler(driver Driver) *Handler {
216 h := &Handler{driver, sdk.NewHandler(manifest)}
217 h.initMux()
218 return h
219}
220
221func (h *Handler) initMux() {
222 h.HandleFunc(capabilitiesPath, func(w http.ResponseWriter, r *http.Request) {

Callers 1

TestMainFunction · 0.70

Calls 1

initMuxMethod · 0.95

Tested by 1

TestMainFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…