Del via


ResponseTransformExtensions.WithTransformResponseTrailer Method

Definition

Clones the route and adds the transform which will append or set the response trailer.

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

Parameters

route
RouteConfig
headerName
String
value
String
append
Boolean
condition
ResponseCondition

Returns

Applies to