Class DirectForwardingIEndpointRouteBuilderExtensions
Extension methods for used to add direct forwarding to the ASP.NET Core request pipeline.
Inheritance
DirectForwardingIEndpointRouteBuilderExtensions
Assembly: Yarp.ReverseProxy.dll
Syntax
public static class DirectForwardingIEndpointRouteBuilderExtensions : object
Methods
|
Improve this Doc
View Source
MapForwarder(IEndpointRouteBuilder, String, String)
Adds direct forwarding of HTTP requests that match the specified pattern to a specific destination using default configuration for the outgoing request, default transforms, and default HTTP client.
Declaration
public static IEndpointConventionBuilder MapForwarder(this IEndpointRouteBuilder endpoints, string pattern, string destinationPrefix)
Parameters
Type |
Name |
Description |
IEndpointRouteBuilder |
endpoints |
|
String |
pattern |
|
String |
destinationPrefix |
|
Returns
Type |
Description |
IEndpointConventionBuilder |
|
|
Improve this Doc
View Source
MapForwarder(IEndpointRouteBuilder, String, String, ForwarderRequestConfig)
Adds direct forwarding of HTTP requests that match the specified pattern to a specific destination using customized configuration for the outgoing request, default transforms, and default HTTP client.
Declaration
public static IEndpointConventionBuilder MapForwarder(this IEndpointRouteBuilder endpoints, string pattern, string destinationPrefix, ForwarderRequestConfig requestConfig)
Parameters
Returns
Type |
Description |
IEndpointConventionBuilder |
|
|
Improve this Doc
View Source
Adds direct forwarding of HTTP requests that match the specified pattern to a specific destination using customized configuration for the outgoing request, customized transforms, and default HTTP client.
Declaration
public static IEndpointConventionBuilder MapForwarder(this IEndpointRouteBuilder endpoints, string pattern, string destinationPrefix, ForwarderRequestConfig requestConfig, HttpTransformer transformer)
Parameters
Returns
Type |
Description |
IEndpointConventionBuilder |
|
|
Improve this Doc
View Source
Adds direct forwarding of HTTP requests that match the specified pattern to a specific destination using customized configuration for the outgoing request, customized transforms, and customized HTTP client.
Declaration
public static IEndpointConventionBuilder MapForwarder(this IEndpointRouteBuilder endpoints, string pattern, string destinationPrefix, ForwarderRequestConfig requestConfig, HttpTransformer transformer, HttpMessageInvoker httpClient)
Parameters
Returns
Type |
Description |
IEndpointConventionBuilder |
|