Skip to content
Docs Try Aspire
Docs Try

YarpRoute.withMatchHeaders

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

Signature

method withMatchHeaders
Only match requests that contain all of these headers.
withMatchHeaders(headers: YarpRouteHeaderMatch[]): YarpRoute
headers YarpRouteHeaderMatch[]
YarpRoute

Defined on

This method is defined on the following type: