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

Method Schemes

mux.go:349–351  ·  view source on GitHub ↗

Schemes registers a new route with a matcher for URL schemes. See Route.Schemes().

(schemes ...string)

Source from the content-addressed store, hash-verified

347// Schemes registers a new route with a matcher for URL schemes.
348// See Route.Schemes().
349func (r *Router) Schemes(schemes ...string) *Route {
350 return r.NewRoute().Schemes(schemes...)
351}
352
353// BuildVarsFunc registers a new route with a custom function for modifying
354// route variables before building a URL.

Callers 7

TestSubrouterMatchingFunction · 0.95
TestSchemeHostPathFunction · 0.45
TestSchemesFunction · 0.45
TestSubRouterFunction · 0.45
TestSchemeMatchersFunction · 0.45
TestRouteMatchersFunction · 0.45
old_test.goFile · 0.45

Calls 1

NewRouteMethod · 0.95

Tested by 6

TestSubrouterMatchingFunction · 0.76
TestSchemeHostPathFunction · 0.36
TestSchemesFunction · 0.36
TestSubRouterFunction · 0.36
TestSchemeMatchersFunction · 0.36
TestRouteMatchersFunction · 0.36