MCPcopy Create free account
hub / github.com/zalando/skipper / Route

Method Route

routing/routing.go:450–453  ·  view source on GitHub ↗

Route matches a request in the current routing tree. If the request matches a route, returns the route and a map of parameters constructed from the wildcard parameters in the path condition if any. If there is no match, it returns nil.

(req *http.Request)

Source from the content-addressed store, hash-verified

448// parameters constructed from the wildcard parameters in the path
449// condition if any. If there is no match, it returns nil.
450func (r *Routing) Route(req *http.Request) (*Route, map[string]string) {
451 rt := r.routeTable.Load().(*routeTable)
452 return rt.m.match(req)
453}
454
455// FirstLoad, when enabled, blocks until the first routing configuration was received
456// by the routing during the startup. When disabled, it doesn't block.

Callers 15

TestSchedulerFunction · 0.80
TestConfigFunction · 0.80
TestRegistryPreProcessorFunction · 0.80
testFailMethod · 0.80
testSuccessMethod · 0.80
TestOpenSucceedsFunction · 0.80
TestPostProcessorFunction · 0.80
checkRequestMethod · 0.80
TestUpdateFailsRecoversFunction · 0.80
TestSubtreeConflictFunction · 0.80
TestPredicateListFunction · 0.80

Calls 1

matchMethod · 0.80

Tested by 15

TestSchedulerFunction · 0.64
TestConfigFunction · 0.64
TestRegistryPreProcessorFunction · 0.64
testFailMethod · 0.64
testSuccessMethod · 0.64
TestOpenSucceedsFunction · 0.64
TestPostProcessorFunction · 0.64
checkRequestMethod · 0.64
TestUpdateFailsRecoversFunction · 0.64
TestSubtreeConflictFunction · 0.64
TestPredicateListFunction · 0.64