host
Creates a route to match a request's host and port. There are no any host resolutions/transformations applied to a host: a request host is treated as a string.
When passes, it puts a request host and port into call parameters by the HostRouteSelector.HostNameParameter and HostRouteSelector.PortParameter keys.
Parameters
exact host name that is treated literally
to be tested or 0
to pass all ports
Creates a route to match a request host and port. There are no any host resolutions/transformations applied to a host: a request host is treated as a string.
When passes, it puts a request host and port into call parameters by the HostRouteSelector.HostNameParameter and HostRouteSelector.PortParameter keys.
Parameters
is a regular expression to match request host
to be tested or 0
to pass all ports
Creates a route to match a request host and port. There are no any host resolutions/transformations applied to a host: a request host is treated as a string.
When passes, it puts request host and port into call parameters by the HostRouteSelector.HostNameParameter and HostRouteSelector.PortParameter keys.
Parameters
a list of exact host names that are treated literally
a list of ports to be passed or empty to pass all ports
Throws
Creates a route to match s request host and port. There are no any host resolutions/transformations applied to a host: a request host is treated as a string.
When passes, it puts request host and port into call parameters by the HostRouteSelector.HostNameParameter and HostRouteSelector.PortParameter keys.
Parameters
a list of exact host names that are treated literally
a list of regular expressions to match request host
a list of ports to be passed or empty to pass all ports
Throws
when no constraints were applied in host, hostPatterns and ports