withMatchHosts
Method
interface YarpRoute { // ... omitted for brevity withMatchHosts(hosts: string[]): YarpRoute;}Signature
method
withMatchHostsOnly match requests with the given Host header. Supports wildcards and ports. For unicode host names, do not use punycode.
withMatchHosts(hosts: string[]): YarpRouteParameters
hostsstring[]Returns
YarpRouteApplies to
This method applies to the following types: