Dela via


RequestHeadersTransformExtensions.WithTransformRequestHeaderRouteValue Method

Definition

Clones the route and adds the transform which will append or set the request header from a route value.

public static Yarp.ReverseProxy.Configuration.RouteConfig WithTransformRequestHeaderRouteValue (this Yarp.ReverseProxy.Configuration.RouteConfig route, string headerName, string routeValueKey, bool append = true);
static member WithTransformRequestHeaderRouteValue : Yarp.ReverseProxy.Configuration.RouteConfig * string * string * bool -> Yarp.ReverseProxy.Configuration.RouteConfig
<Extension()>
Public Function WithTransformRequestHeaderRouteValue (route As RouteConfig, headerName As String, routeValueKey As String, Optional append As Boolean = true) As RouteConfig

Parameters

route
RouteConfig
headerName
String
routeValueKey
String
append
Boolean

Returns

Applies to