MCPcopy
hub / github.com/nytimes/gizmo / ServeHTTP

Method ServeHTTP

server/kit/router.go:14–14  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

12 Handle(method string, path string, handler http.Handler)
13 HandleFunc(method string, path string, handlerFunc func(http.ResponseWriter, *http.Request))
14 ServeHTTP(w http.ResponseWriter, r *http.Request)
15 SetNotFoundHandler(handler http.Handler)
16}
17

Callers 15

MiddlewareMethod · 0.65
TestAuthCallbackFunction · 0.65
TestAuthCustomExceptionsFunction · 0.65
TestAuthHeaderExceptionsFunction · 0.65
TestCORSHandlerFunction · 0.65
TestJSONToHTTPFunction · 0.65
TestJSONPHandlerFunction · 0.65
TestNoCacheHandlerFunction · 0.65
safelyExecuteRequestMethod · 0.65
HandleMethod · 0.65

Implementers 4

GorillaRouterserver/router.go
stdlibRouterserver/router.go
stdlibRouterserver/kit/router.go
gorillaRouterserver/kit/router.go

Calls

no outgoing calls

Tested by 10

TestAuthCallbackFunction · 0.52
TestAuthCustomExceptionsFunction · 0.52
TestAuthHeaderExceptionsFunction · 0.52
TestCORSHandlerFunction · 0.52
TestJSONToHTTPFunction · 0.52
TestJSONPHandlerFunction · 0.52
TestNoCacheHandlerFunction · 0.52
HTTPMiddlewareMethod · 0.52