RequestHeadersTransformExtensions.WithTransformUseOriginalHostHeader 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 copy the incoming request Host header to the proxy request.
public static Yarp.ReverseProxy.Configuration.RouteConfig WithTransformUseOriginalHostHeader (this Yarp.ReverseProxy.Configuration.RouteConfig route, bool useOriginal = true);
static member WithTransformUseOriginalHostHeader : Yarp.ReverseProxy.Configuration.RouteConfig * bool -> Yarp.ReverseProxy.Configuration.RouteConfig
<Extension()>
Public Function WithTransformUseOriginalHostHeader (route As RouteConfig, Optional useOriginal As Boolean = true) As RouteConfig
Parameters
- route
- RouteConfig
- useOriginal
- Boolean