(next http.Handler)
| 37 | ) |
| 38 | |
| 39 | func PanicMiddleware(next http.Handler) http.Handler { |
| 40 | return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { |
| 41 | defer recoverAndRespond(w, r) |
| 42 | next.ServeHTTP(w, r) |
| 43 | }) |
| 44 | } |
| 45 | |
| 46 | func ClientIDMiddleware(next http.Handler) http.Handler { |
| 47 | return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { |
nothing calls this directly
no test coverage detected