(next http.Handler)
| 539 | } |
| 540 | |
| 541 | func commonLog(next http.Handler) http.Handler { |
| 542 | return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { |
| 543 | log.InfoContext(r.Context(), "New ", r.Method, " request from ", r.RemoteAddr, " to ", r.URL.RequestURI()) |
| 544 | next.ServeHTTP(w, r) |
| 545 | }) |
| 546 | } |
| 547 | |
| 548 | func requestLimitHandle(next http.Handler) http.Handler { |
| 549 | return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { |
nothing calls this directly
no outgoing calls
no test coverage detected