(w http.ResponseWriter, r *http.Request)
| 42 | var nextHandlerContextKey = nextHandler{} |
| 43 | |
| 44 | func ProceedNext(w http.ResponseWriter, r *http.Request) { |
| 45 | next, ok := r.Context().Value(nextHandlerContextKey).(http.HandlerFunc) |
| 46 | if ok { |
| 47 | next(w, r) |
| 48 | } else { |
| 49 | w.WriteHeader(http.StatusOK) |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | func AuthCheckHandler(w http.ResponseWriter, r *http.Request) { |
| 54 | if defaultAuth == nil { |
no test coverage detected