MCPcopy Create free account
hub / github.com/caddyserver/caddy / ServeHTTP

Method ServeHTTP

admin.go:1368–1370  ·  view source on GitHub ↗

ServeHTTP implements the Handler interface.

(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

1366
1367// ServeHTTP implements the Handler interface.
1368func (f AdminHandlerFunc) ServeHTTP(w http.ResponseWriter, r *http.Request) error {
1369 return f(w, r)
1370}
1371
1372// APIError is a structured error that every API
1373// handler should return for consistency in logging

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected