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