Class: HostMatcher
Selects routes whose host patterns match the current HTTP request.
Constructors
Constructor
new HostMatcher():
HostMatcher
Returns
HostMatcher
Methods
match()
match(
routes,hostDefinition):RouteDefinition[]
Returns the most specific matching host routes, or unrestricted routes as a fallback.
Parameters
routes
readonly RouteDefinition[]