Share via


ForwardedHeadersExtensions Class

Definition

Extension methods for enabling ForwardedHeadersMiddleware.

public ref class ForwardedHeadersExtensions abstract sealed
public static class ForwardedHeadersExtensions
type ForwardedHeadersExtensions = class
Public Module ForwardedHeadersExtensions
Inheritance
ForwardedHeadersExtensions

Methods

UseForwardedHeaders(IApplicationBuilder)

Applies forwarded headers to their matching fields on the current request.

By convention, HTTP proxies forward information from the client in well-known HTTP headers. The ForwardedHeadersMiddleware reads these headers and fills in the associated fields on HttpContext.

UseForwardedHeaders(IApplicationBuilder, ForwardedHeadersOptions)

Applies forwarded headers to their matching fields on the current request.

By convention, HTTP proxies forward information from the client in well-known HTTP headers. The ForwardedHeadersMiddleware reads these headers and fills in the associated fields on HttpContext.

Applies to