YarpRouteExtensions.WithMatchHeaders(YarpRoute, RouteHeader[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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[]