MCPcopy Create free account
hub / github.com/PuerNya/git-proxy / commonLog

Function commonLog

main.go:541–546  ·  view source on GitHub ↗
(next http.Handler)

Source from the content-addressed store, hash-verified

539}
540
541func 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
548func requestLimitHandle(next http.Handler) http.Handler {
549 return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected