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

Method Use

chi.go:71–71  ·  chi.go::Router.Use

Use appends one or more middlewares onto the Router stack.

(middlewares ...func(http.Handler) http.Handler)

Source from the content-addressed store, hash-verified

69
70 // Use appends one or more middlewares onto the Router stack.
71 Use(middlewares ...func(http.Handler) http.Handler)
72
73 // With adds inline middlewares for an endpoint handler.
74 With(middlewares ...func(http.Handler) http.Handler) Router

Callers 15

TestMuxBasicFunction · 0.95
TestMuxNestedNotFoundFunction · 0.95
TestMuxMiddlewareStackFunction · 0.95
TestMuxRouteGroupsFunction · 0.95
TestNestedGroupsFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
adminRouterFunction · 0.95

Implementers 1

Muxmux.go

Calls

no outgoing calls

Tested by 15

TestMuxBasicFunction · 0.76
TestMuxNestedNotFoundFunction · 0.76
TestMuxMiddlewareStackFunction · 0.76
TestMuxRouteGroupsFunction · 0.76
TestNestedGroupsFunction · 0.76
Example_clientIPFunction · 0.76
TestXRealIPFunction · 0.76
TestXForwardForIPFunction · 0.76
TestInvalidIPFunction · 0.76