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

Method Post

route/route.go:108–110  ·  view source on GitHub ↗

Post registers a new POST route.

(path string, h http.HandlerFunc)

Source from the content-addressed store, hash-verified

106
107// Post registers a new POST route.
108func (r *Router) Post(path string, h http.HandlerFunc) {
109 r.rtr.POST(r.prefix+path, r.handle(path, h))
110}
111
112// Head registers a new HEAD route.
113func (r *Router) Head(path string, h http.HandlerFunc) {

Callers

nothing calls this directly

Calls 1

handleMethod · 0.95

Tested by

no test coverage detected