Share via


YarpRouteExtensions.WithMatchHeaders(YarpRoute, RouteHeader[]) Method

Definition

Only match requests that contain all of these headers.

public static Aspire.Hosting.Yarp.YarpRoute WithMatchHeaders(this Aspire.Hosting.Yarp.YarpRoute route, params Yarp.ReverseProxy.Configuration.RouteHeader[] headers);
static member WithMatchHeaders : Aspire.Hosting.Yarp.YarpRoute * Yarp.ReverseProxy.Configuration.RouteHeader[] -> Aspire.Hosting.Yarp.YarpRoute
<Extension()>
Public Function WithMatchHeaders (route As YarpRoute, ParamArray headers As RouteHeader()) As YarpRoute

Parameters

route
YarpRoute
headers
RouteHeader[]

Returns

Applies to