Class RequestHeaderXForwardedProtoTransform
Sets or appends the X-Forwarded-Proto header with the request's original url scheme.
Inherited Members
Namespace: Yarp.ReverseProxy.Transforms
Assembly: Yarp.ReverseProxy.dll
Syntax
public class RequestHeaderXForwardedProtoTransform : RequestTransform
Constructors
| Improve this Doc View SourceRequestHeaderXForwardedProtoTransform(String, ForwardedTransformActions)
Creates a new transform.
Declaration
public RequestHeaderXForwardedProtoTransform(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 |