MCPcopy
hub / github.com/gorilla/mux / addMatcher

Method addMatcher

route.go:176–181  ·  view source on GitHub ↗

addMatcher adds a matcher to the route.

(m matcher)

Source from the content-addressed store, hash-verified

174
175// addMatcher adds a matcher to the route.
176func (r *Route) addMatcher(m matcher) *Route {
177 if r.err == nil {
178 r.matchers = append(r.matchers, m)
179 }
180 return r
181}
182
183// addRegexpMatcher adds a host or path matcher and builder to a route.
184func (r *Route) addRegexpMatcher(tpl string, typ regexpType) error {

Callers 7

addRegexpMatcherMethod · 0.95
HeadersMethod · 0.95
HeadersRegexpMethod · 0.95
MatcherFuncMethod · 0.95
MethodsMethod · 0.95
SchemesMethod · 0.95
SubrouterMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected