Class RequestHeaderXForwardedHostTransform
- Namespace
- Yarp.ReverseProxy.Transforms
- Assembly
- Yarp.ReverseProxy.dll
Sets or appends the X-Forwarded-Host header with the request's original Host header.
public class RequestHeaderXForwardedHostTransform : RequestTransform
- Inheritance
-
RequestHeaderXForwardedHostTransform
- Inherited Members
Constructors
RequestHeaderXForwardedHostTransform(string, ForwardedTransformActions)
Creates a new transform.
public RequestHeaderXForwardedHostTransform(string headerName, ForwardedTransformActions action)
Parameters
headerName
stringThe header name.
action
ForwardedTransformActionsAction to applied to the header.
Methods
ApplyAsync(RequestTransformContext)
public override ValueTask ApplyAsync(RequestTransformContext context)
Parameters
context
RequestTransformContext