Dela via


ResponseTransformExtensions.WithTransformResponseHeaderRemove Method

Definition

Clones the route and adds the transform which will remove the response header.

public static Yarp.ReverseProxy.Configuration.RouteConfig WithTransformResponseHeaderRemove (this Yarp.ReverseProxy.Configuration.RouteConfig route, string headerName, Yarp.ReverseProxy.Transforms.ResponseCondition condition = Yarp.ReverseProxy.Transforms.ResponseCondition.Success);
static member WithTransformResponseHeaderRemove : Yarp.ReverseProxy.Configuration.RouteConfig * string * Yarp.ReverseProxy.Transforms.ResponseCondition -> Yarp.ReverseProxy.Configuration.RouteConfig
<Extension()>
Public Function WithTransformResponseHeaderRemove (route As RouteConfig, headerName As String, Optional condition As ResponseCondition = Yarp.ReverseProxy.Transforms.ResponseCondition.Success) As RouteConfig

Parameters

route
RouteConfig
headerName
String
condition
ResponseCondition

Returns

Applies to