MCPcopy Create free account
hub / github.com/donutloop/mux / Headers

Method Headers

route.go:289–302  ·  view source on GitHub ↗

Headers adds a matcher for request header values. It accepts a sequence of key/value pairs to be matched. For example: For example: r := mux.Classic() r.Headers("Content-Type", "application/json", "X-Requested-With", "XMLHttpRequest") Invaild example: r := mux.Classic() r.Headers("Content-Typ

(pairs ...string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

addMatcherMethod · 0.95
newHeaderMatcherFunction · 0.85

Tested by

no test coverage detected