C# Class RequestHeaderXForwardedForTransform, reverse-proxy

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

Private Properties

Свойство Type Description
Append void

Méthodes publiques

Méthode Description
ApplyAsync ( RequestTransformContext, context ) : ValueTask,
RequestHeaderXForwardedForTransform ( string headerName, ForwardedTransformActions action ) : System,

Creates a new transform.

Private Methods

Méthode Description
Append ( RequestTransformContext, context, string? remoteIp ) : void

Method Details

ApplyAsync() public méthode

public ApplyAsync ( RequestTransformContext, context ) : ValueTask,
context RequestTransformContext,
Résultat ValueTask,

RequestHeaderXForwardedForTransform() public méthode

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