Skip to content
Docs Try Aspire
Docs Try

withMatchHeaders

Method
📦 Aspire.Hosting.Yarp v13.3.0
interface YarpRoute {
// ... omitted for brevity
withMatchHeaders(headers: YarpRouteHeaderMatch[]): YarpRoute;
}

Signature

method withMatchHeaders
Matches requests that contain the specified headers.
withMatchHeaders(headers: YarpRouteHeaderMatch[]): YarpRoute
headers YarpRouteHeaderMatch[]
YarpRoute

Applies to

This method applies to the following types: