Table of Contents

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 string

The header name.

action ForwardedTransformActions

Action to applied to the header.

Methods

ApplyAsync(RequestTransformContext)

public override ValueTask ApplyAsync(RequestTransformContext context)

Parameters

context RequestTransformContext

Returns

ValueTask