Class DirectForwardingIEndpointRouteBuilderExtensions
Extension methods for used to add direct forwarding to the ASP.NET Core request pipeline.
Inheritance
System.Object
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 |
|
System.String |
pattern |
|
System.String |
destinationPrefix |
|
Returns
Type |
Description |
IEndpointConventionBuilder |
|
|
Improve this Doc
View Source
MapForwarder(IEndpointRouteBuilder, String, String, Action<TransformBuilderContext>)
Adds direct forwarding of HTTP requests that match the specified pattern to a specific destination using default configuration for the outgoing request, customized transforms, and default HTTP client.
Declaration
public static IEndpointConventionBuilder MapForwarder(this IEndpointRouteBuilder endpoints, string pattern, string destinationPrefix, Action<TransformBuilderContext> configureTransform)
Parameters
Type |
Name |
Description |
IEndpointRouteBuilder |
endpoints |
|
System.String |
pattern |
|
System.String |
destinationPrefix |
|
Action<TransformBuilderContext> |
configureTransform |
|
Returns
Type |
Description |
IEndpointConventionBuilder |
|
|
Improve this Doc
View Source
MapForwarder(IEndpointRouteBuilder, String, String, String)
Adds direct forwarding of HTTP requests that match the specified pattern to a specific destination and target path applying route values from the pattern using default configuration for the outgoing request, and default HTTP client.
Declaration
public static IEndpointConventionBuilder MapForwarder(this IEndpointRouteBuilder endpoints, string pattern, string destinationPrefix, string targetPath)
Parameters
Type |
Name |
Description |
IEndpointRouteBuilder |
endpoints |
|
System.String |
pattern |
|
System.String |
destinationPrefix |
|
System.String |
targetPath |
|
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
Type |
Name |
Description |
IEndpointRouteBuilder |
endpoints |
|
System.String |
pattern |
|
System.String |
destinationPrefix |
|
ForwarderRequestConfig |
requestConfig |
|
Returns
Type |
Description |
IEndpointConventionBuilder |
|
|
Improve this Doc
View Source
MapForwarder(IEndpointRouteBuilder, String, String, ForwarderRequestConfig, Action<TransformBuilderContext>)
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, Action<TransformBuilderContext> configureTransform)
Parameters
Returns
Type |
Description |
IEndpointConventionBuilder |
|
|
Improve this Doc
View Source
MapForwarder(IEndpointRouteBuilder, String, String, ForwarderRequestConfig, String)
Adds direct forwarding of HTTP requests that match the specified pattern to a specific destination and target path applying route values from the pattern using customized configuration for the outgoing request, and default HTTP client.
Declaration
public static IEndpointConventionBuilder MapForwarder(this IEndpointRouteBuilder endpoints, string pattern, string destinationPrefix, ForwarderRequestConfig requestConfig, string targetPath)
Parameters
Type |
Name |
Description |
IEndpointRouteBuilder |
endpoints |
|
System.String |
pattern |
|
System.String |
destinationPrefix |
|
ForwarderRequestConfig |
requestConfig |
|
System.String |
targetPath |
|
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
Type |
Name |
Description |
IEndpointRouteBuilder |
endpoints |
|
System.String |
pattern |
|
System.String |
destinationPrefix |
|
ForwarderRequestConfig |
requestConfig |
|
HttpTransformer |
transformer |
|
HttpMessageInvoker |
httpClient |
|
Returns
Type |
Description |
IEndpointConventionBuilder |
|