RequestHeadersTransformExtensions.WithTransformRequestHeaderRouteValue 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.
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