MCPcopy
hub / github.com/tsuru/tsuru / ServeHTTP

Method ServeHTTP

api/handler.go:25–27  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

23type Handler func(http.ResponseWriter, *http.Request) error
24
25func (fn Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
26 context.AddRequestError(r, fn(w, r))
27}
28
29type AuthorizationRequiredHandler func(http.ResponseWriter, *http.Request, auth.Token) error
30

Calls 1

AddRequestErrorFunction · 0.92