C# Class RequestHeaderXForwardedForTransform, reverse-proxy

Sets or appends the X-Forwarded-For header with the previous clients's IP address.
Inheritance: RequestTransform
Mostra file Open project: microsoft/reverse-proxy Class Usage Examples

Private Properties

Property Type Description
Append void

Public Methods

Method Description
ApplyAsync ( RequestTransformContext, context ) : ValueTask,
RequestHeaderXForwardedForTransform ( string headerName, ForwardedTransformActions action ) : System,

Creates a new transform.

Private Methods

Method Description
Append ( RequestTransformContext, context, string? remoteIp ) : void

Method Details

ApplyAsync() public method

public ApplyAsync ( RequestTransformContext, context ) : ValueTask,
context RequestTransformContext,
return ValueTask,

RequestHeaderXForwardedForTransform() public method

Creates a new transform.
public RequestHeaderXForwardedForTransform ( string headerName, ForwardedTransformActions action ) : System,
headerName string The header name.
action ForwardedTransformActions Action to applied to the header.
return System,