MCPcopy Create free account
hub / github.com/prometheus/common / ServeHTTP

Method ServeHTTP

route/route.go:125–127  ·  view source on GitHub ↗

ServeHTTP implements http.Handler.

(w http.ResponseWriter, req *http.Request)

Source from the content-addressed store, hash-verified

123
124// ServeHTTP implements http.Handler.
125func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request) {
126 r.rtr.ServeHTTP(w, req)
127}
128
129// FileServe returns a new http.HandlerFunc that serves files from dir.
130// Using routes must provide the *filepath parameter.

Callers 8

TestContextFunction · 0.80
TestContextWithValueFunction · 0.80
TestContextWithoutValueFunction · 0.80
TestInstrumentationFunction · 0.80
TestInstrumentationsFunction · 0.80
FileServeFunction · 0.80
TestServeHttpFunction · 0.80
StaticFileServerFunction · 0.80

Calls

no outgoing calls

Tested by 6

TestContextFunction · 0.64
TestContextWithValueFunction · 0.64
TestContextWithoutValueFunction · 0.64
TestInstrumentationFunction · 0.64
TestInstrumentationsFunction · 0.64
TestServeHttpFunction · 0.64