Share via


RequestHeadersTransformExtensions.WithTransformCopyRequestHeaders Method

Definition

Clones the route and adds the transform which will enable or suppress copying request headers to the proxy request.

public static Yarp.ReverseProxy.Configuration.RouteConfig WithTransformCopyRequestHeaders(this Yarp.ReverseProxy.Configuration.RouteConfig route, bool copy = true);
static member WithTransformCopyRequestHeaders : Yarp.ReverseProxy.Configuration.RouteConfig * bool -> Yarp.ReverseProxy.Configuration.RouteConfig
<Extension()>
Public Function WithTransformCopyRequestHeaders (route As RouteConfig, Optional copy As Boolean = true) As RouteConfig

Parameters

route
RouteConfig
copy
Boolean

Returns

Applies to