Table of Contents

Class ReverseProxyIEndpointRouteBuilderExtensions

Namespace
Microsoft.AspNetCore.Builder
Assembly
Yarp.ReverseProxy.dll

Extension methods for IEndpointRouteBuilder used to add Reverse Proxy to the ASP .NET Core request pipeline.

public static class ReverseProxyIEndpointRouteBuilderExtensions
Inheritance
ReverseProxyIEndpointRouteBuilderExtensions
Inherited Members

Methods

MapReverseProxy(IEndpointRouteBuilder)

Adds Reverse Proxy routes to the route table using the default processing pipeline.

public static ReverseProxyConventionBuilder MapReverseProxy(this IEndpointRouteBuilder endpoints)

Parameters

endpoints IEndpointRouteBuilder

Returns

ReverseProxyConventionBuilder

MapReverseProxy(IEndpointRouteBuilder, Action<IReverseProxyApplicationBuilder>)

Adds Reverse Proxy routes to the route table with the customized processing pipeline. The pipeline includes by default the initialization step and the final proxy step, but not LoadBalancingMiddleware or other intermediate components.

public static ReverseProxyConventionBuilder MapReverseProxy(this IEndpointRouteBuilder endpoints, Action<IReverseProxyApplicationBuilder> configureApp)

Parameters

endpoints IEndpointRouteBuilder
configureApp Action<IReverseProxyApplicationBuilder>

Returns

ReverseProxyConventionBuilder