MCPcopy
hub / github.com/go-chi/chi / Handler

Method Handler

chain.go:12–14  ·  view source on GitHub ↗

Handler builds and returns a http.Handler from the chain of middlewares, with `h http.Handler` as the final handler.

(h http.Handler)

Source from the content-addressed store, hash-verified

10// Handler builds and returns a http.Handler from the chain of middlewares,
11// with `h http.Handler` as the final handler.
12func (mws Middlewares) Handler(h http.Handler) http.Handler {
13 return &ChainHandler{h, chain(mws, h), mws}
14}
15
16// HandlerFunc builds and returns a http.Handler from the chain of middlewares,
17// with `h http.Handler` as the final handler.

Callers 2

handleMethod · 0.45
bigMuxFunction · 0.45

Calls 1

chainFunction · 0.85

Tested by 1

bigMuxFunction · 0.36