WithMatchHosts
Method
func (YarpRoute) WithMatchHosts(hosts []string) YarpRouteSignature
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().
Applies to
This method applies to the following types: