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

Method ServeHTTP

route/route.go:135–137  ·  view source on GitHub ↗

ServeHTTP implements http.Handler.

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

Source from the content-addressed store, hash-verified

133
134// ServeHTTP implements http.Handler.
135func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request) {
136 r.rtr.ServeHTTP(w, req)
137}
138
139// FileServe returns a new http.HandlerFunc that serves files from dir.
140// Using routes must provide the *filepath parameter.

Callers 9

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

Calls

no outgoing calls

Tested by 7

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