Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithMatchHeaders

Method
📦 Aspire.Hosting.Yarp v17.0.0
func (YarpRoute) WithMatchHeaders(headers []*YarpRouteHeaderMatch) YarpRoute

Signature

methodWithMatchHeaders
Only match requests that contain all of these headers.
WithMatchHeaders(headers []*YarpRouteHeaderMatch) YarpRoute
headers[]*YarpRouteHeaderMatch
YarpRoute

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: