YarpRoute.WithMatchHeaders
Method
type YarpRoute interface { // ... omitted for brevity WithMatchHeaders(headers []*YarpRouteHeaderMatch) YarpRoute}Signature
method
WithMatchHeaders Only match requests that contain all of these headers.
WithMatchHeaders(headers []*YarpRouteHeaderMatch) YarpRouteParameters
headers[]*YarpRouteHeaderMatch Returns
YarpRoute Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: