YarpRoute.WithMatchHosts
Method
type YarpRoute interface { // ... omitted for brevity WithMatchHosts(hosts []string) YarpRoute}Signature
method
WithMatchHosts Only match requests with the given Host header. Supports wildcards and ports. For unicode host names, do not use punycode.
WithMatchHosts(hosts []string) YarpRouteParameters
hosts[]string Returns
YarpRoute Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: