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

Method Del

route/route.go:103–105  ·  view source on GitHub ↗

Del registers a new DELETE route.

(path string, h http.HandlerFunc)

Source from the content-addressed store, hash-verified

101
102// Del registers a new DELETE route.
103func (r *Router) Del(path string, h http.HandlerFunc) {
104 r.rtr.DELETE(r.prefix+path, r.handle(path, h))
105}
106
107// Put registers a new PUT route.
108func (r *Router) Put(path string, h http.HandlerFunc) {

Callers 1

RoundTripMethod · 0.80

Calls 1

handleMethod · 0.95

Tested by

no test coverage detected