MCPcopy Create free account
hub / github.com/linuxkit/linuxkit / logRequest

Function logRequest

src/cmd/linuxkit/serve.go:10–15  ·  view source on GitHub ↗
(handler http.Handler)

Source from the content-addressed store, hash-verified

8)
9
10func logRequest(handler http.Handler) http.Handler {
11 return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
12 log.Infof("%s %s", r.Method, r.URL)
13 handler.ServeHTTP(w, r)
14 })
15}
16
17func serveCmd() *cobra.Command {
18 var (

Callers 1

serveCmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected