MCPcopy
hub / github.com/caddyserver/caddy / AdminHandler

Interface AdminHandler

admin.go:1360–1362  ·  admin.go::AdminHandler

AdminHandler is like http.Handler except ServeHTTP may return an error. If any handler encounters an error, it should be returned for proper handling.

Source from the content-addressed store, hash-verified

1358// If any handler encounters an error, it should be returned for proper
1359// handling.
1360type AdminHandler interface {
1361 ServeHTTP(http.ResponseWriter, *http.Request) error
1362}
1363
1364// AdminHandlerFunc is a convenience type like http.HandlerFunc.
1365type AdminHandlerFunc func(http.ResponseWriter, *http.Request) error

Callers 5

instrumentHandlerCounterFunction · 0.65
newAdminHandlerMethod · 0.65
serveHTTPMethod · 0.65

Implementers 15

adminHandleradmin.go
Handlermodules/caddypki/acmeserver/acmeserver
Servermodules/caddyhttp/server.go
StaticResponsemodules/caddyhttp/staticresp.go
Subroutemodules/caddyhttp/subroute.go
metricsInstrumentedRoutemodules/caddyhttp/metrics.go
StaticErrormodules/caddyhttp/staticerror.go
Invokemodules/caddyhttp/invoke.go
Rewritemodules/caddyhttp/rewrite/rewrite.go
Interceptmodules/caddyhttp/intercept/intercept.
Encodemodules/caddyhttp/encode/encode.go
LogAppendmodules/caddyhttp/logging/logappend.go

Calls

no outgoing calls

Tested by

no test coverage detected