MCPcopy
hub / github.com/yusing/godoxy / ProceedNext

Function ProceedNext

internal/auth/auth.go:44–51  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

42var nextHandlerContextKey = nextHandler{}
43
44func 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
53func AuthCheckHandler(w http.ResponseWriter, r *http.Request) {
54 if defaultAuth == nil {

Callers 1

LoginHandlerMethod · 0.85

Calls 3

ValueMethod · 0.65
ContextMethod · 0.65
WriteHeaderMethod · 0.45

Tested by

no test coverage detected