Class DirectForwardingIEndpointRouteBuilderExtensions
- Namespace
- Microsoft.AspNetCore.Builder
- Assembly
- Yarp.ReverseProxy.dll
Extension methods for IEndpointRouteBuilder used to add direct forwarding to the ASP.NET Core request pipeline.
public static class DirectForwardingIEndpointRouteBuilderExtensions
- Inheritance
-
DirectForwardingIEndpointRouteBuilderExtensions
- Inherited Members
Methods
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.
public static IEndpointConventionBuilder MapForwarder(this IEndpointRouteBuilder endpoints, string pattern, string destinationPrefix)
Parameters
endpointsIEndpointRouteBuilderpatternstringdestinationPrefixstring
Returns
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.
public static IEndpointConventionBuilder MapForwarder(this IEndpointRouteBuilder endpoints, string pattern, string destinationPrefix, Action<TransformBuilderContext> configureTransform)
Parameters
endpointsIEndpointRouteBuilderpatternstringdestinationPrefixstringconfigureTransformAction<TransformBuilderContext>
Returns
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.
public static IEndpointConventionBuilder MapForwarder(this IEndpointRouteBuilder endpoints, string pattern, string destinationPrefix, string targetPath)
Parameters
endpointsIEndpointRouteBuilderpatternstringdestinationPrefixstringtargetPathstring
Returns
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.
public static IEndpointConventionBuilder MapForwarder(this IEndpointRouteBuilder endpoints, string pattern, string destinationPrefix, ForwarderRequestConfig requestConfig)
Parameters
endpointsIEndpointRouteBuilderpatternstringdestinationPrefixstringrequestConfigForwarderRequestConfig
Returns
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.
public static IEndpointConventionBuilder MapForwarder(this IEndpointRouteBuilder endpoints, string pattern, string destinationPrefix, ForwarderRequestConfig requestConfig, Action<TransformBuilderContext> configureTransform)
Parameters
endpointsIEndpointRouteBuilderpatternstringdestinationPrefixstringrequestConfigForwarderRequestConfigconfigureTransformAction<TransformBuilderContext>
Returns
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.
public static IEndpointConventionBuilder MapForwarder(this IEndpointRouteBuilder endpoints, string pattern, string destinationPrefix, ForwarderRequestConfig requestConfig, string targetPath)
Parameters
endpointsIEndpointRouteBuilderpatternstringdestinationPrefixstringrequestConfigForwarderRequestConfigtargetPathstring
Returns
MapForwarder(IEndpointRouteBuilder, string, string, ForwarderRequestConfig, HttpTransformer)
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.
public static IEndpointConventionBuilder MapForwarder(this IEndpointRouteBuilder endpoints, string pattern, string destinationPrefix, ForwarderRequestConfig requestConfig, HttpTransformer transformer)
Parameters
endpointsIEndpointRouteBuilderpatternstringdestinationPrefixstringrequestConfigForwarderRequestConfigtransformerHttpTransformer
Returns
MapForwarder(IEndpointRouteBuilder, string, string, ForwarderRequestConfig, HttpTransformer, HttpMessageInvoker)
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.
public static IEndpointConventionBuilder MapForwarder(this IEndpointRouteBuilder endpoints, string pattern, string destinationPrefix, ForwarderRequestConfig requestConfig, HttpTransformer transformer, HttpMessageInvoker httpClient)
Parameters
endpointsIEndpointRouteBuilderpatternstringdestinationPrefixstringrequestConfigForwarderRequestConfigtransformerHttpTransformerhttpClientHttpMessageInvoker