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

Method Host

mux.go:313–315  ·  mux.go::Router.Host

Host registers a new route with a matcher for the URL host. See Route.Host().

(tpl string)

Source from the content-addressed store, hash-verified

311// Host registers a new route with a matcher for the URL host.
312// See Route.Host().
313func (r *Router) Host(tpl string) *Route {
314 return r.NewRoute().Host(tpl)
315}
316
317// MatcherFunc registers a new route with a custom matcher function.
318// See Route.MatcherFunc().

Callers 12

TestSubrouterMatchingFunction · 0.95
TestGetVarNamesFunction · 0.95
ExampleRoute_GetVarNamesFunction · 0.95
TestHostFunction · 0.45
TestSchemeHostPathFunction · 0.45
TestQueriesFunction · 0.45
TestSchemesFunction · 0.45
TestSubRouterFunction · 0.45
TestRouteMatchersFunction · 0.45
old_test.goFile · 0.45
TestSubRoutingFunction · 0.45
TestVariableNamesFunction · 0.45

Calls 1

NewRouteMethod · 0.95

Tested by 11

TestSubrouterMatchingFunction · 0.76
TestGetVarNamesFunction · 0.76
ExampleRoute_GetVarNamesFunction · 0.76
TestHostFunction · 0.36
TestSchemeHostPathFunction · 0.36
TestQueriesFunction · 0.36
TestSchemesFunction · 0.36
TestSubRouterFunction · 0.36
TestRouteMatchersFunction · 0.36
TestSubRoutingFunction · 0.36
TestVariableNamesFunction · 0.36