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

Method Query

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

Query registers a new QUERY route.

(path string, h http.HandlerFunc)

Source from the content-addressed store, hash-verified

121
122// Query registers a new QUERY route.
123func (r *Router) Query(path string, h http.HandlerFunc) {
124 r.rtr.Handle(MethodQuery, r.prefix+path, r.handle(path, h))
125}
126
127// Redirect takes an absolute path and sends an internal HTTP redirect for it,
128// prefixed by the router's path prefix. Note that this method does not include

Callers 1

TestQueryFunction · 0.80

Calls 1

handleMethod · 0.95

Tested by 1

TestQueryFunction · 0.64