MCPcopy
hub / github.com/perkeep/perkeep / ServeHTTP

Method ServeHTTP

pkg/auth/auth.go:419–421  ·  view source on GitHub ↗

ServeHTTP serves only if this request and auth mode are allowed all Operations.

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

Source from the content-addressed store, hash-verified

417
418// ServeHTTP serves only if this request and auth mode are allowed all Operations.
419func (h Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
420 h.serveHTTPForOp(w, r, OpAll)
421}
422
423// serveHTTPForOp serves only if op is allowed for this request and auth mode.
424func (h Handler) serveHTTPForOp(w http.ResponseWriter, r *http.Request, op Operation) {

Callers 2

serveHTTPForOpMethod · 0.45
RequireAuthFunction · 0.45

Calls 1

serveHTTPForOpMethod · 0.95

Tested by

no test coverage detected