RequestHeadersTransformExtensions.WithTransformRequestHeader 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.
public static Yarp.ReverseProxy.Configuration.RouteConfig WithTransformRequestHeader (this Yarp.ReverseProxy.Configuration.RouteConfig route, string headerName, string value, bool append = true);
static member WithTransformRequestHeader : Yarp.ReverseProxy.Configuration.RouteConfig * string * string * bool -> Yarp.ReverseProxy.Configuration.RouteConfig
<Extension()>
Public Function WithTransformRequestHeader (route As RouteConfig, headerName As String, value As String, Optional append As Boolean = true) As RouteConfig
Parameters
- route
- RouteConfig
- headerName
- String
- value
- String
- append
- Boolean