Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

YarpRoute.withMatchHeaders

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

Signature

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

Defined on

This method is defined on the following type: