Class RequestHeaderXForwardedHostTransform
Sets or appends the X-Forwarded-Host header with the request's original Host header.
Inherited Members
Namespace: Yarp.ReverseProxy.Transforms
Assembly: Yarp.ReverseProxy.dll
Syntax
public class RequestHeaderXForwardedHostTransform : RequestTransform
Constructors
| Improve this Doc View SourceRequestHeaderXForwardedHostTransform(String, ForwardedTransformActions)
Creates a new transform.
Declaration
public RequestHeaderXForwardedHostTransform(string headerName, ForwardedTransformActions action)
Parameters
Type | Name | Description |
---|---|---|
System.String | headerName | The header name. |
ForwardedTransformActions | action | Action to applied to the header. |
Methods
| Improve this Doc View SourceApplyAsync(RequestTransformContext)
Transforms any of the available fields before building the outgoing request.
Declaration
public override ValueTask ApplyAsync(RequestTransformContext context)
Parameters
Type | Name | Description |
---|---|---|
RequestTransformContext | context |
Returns
Type | Description |
---|---|
ValueTask |