(w http.ResponseWriter, r *http.Request)
| 18 | } |
| 19 | |
| 20 | func (h *handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { |
| 21 | if !h.auth.Check(r.Context(), r) { |
| 22 | w.WriteHeader(http.StatusUnauthorized) |
| 23 | return |
| 24 | } |
| 25 | h.next.ServeHTTP(w, r) |
| 26 | } |
| 27 | |
| 28 | // Handler returns a http.Handler that gates access to the passed Handler behind |
| 29 | // the passed Checker. |
nothing calls this directly
no test coverage detected