MCPcopy
hub / github.com/cortesi/devd / Handler

Interface Handler

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

Handler is a request handler with an added context

Source from the content-addressed store, hash-verified

10
11// Handler is a request handler with an added context
12type Handler interface {
13 ServeHTTPContext(context.Context, http.ResponseWriter, *http.Request)
14}
15
16// A HandlerFunc is an adaptor to turn a function in to a Handler
17type HandlerFunc func(context.Context, http.ResponseWriter, *http.Request)

Callers 3

WrapHandlerMethod · 0.65
ServeHTTPMethod · 0.65
StripPrefixFunction · 0.65

Implementers 2

ReverseProxyreverseproxy/reverseproxy.go
FileServerfileserver/fileserver.go

Calls

no outgoing calls

Tested by

no test coverage detected