Show / Hide Table of Contents

Class DirectForwardingIEndpointRouteBuilderExtensions

Extension methods for used to add direct forwarding to the ASP.NET Core request pipeline.

Inheritance
Object
DirectForwardingIEndpointRouteBuilderExtensions
Namespace: Microsoft.AspNetCore.Builder
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
Type Name Description
IEndpointRouteBuilder endpoints
String pattern
String destinationPrefix
ForwarderRequestConfig requestConfig
Returns
Type Description
IEndpointConventionBuilder
| Improve this Doc View Source

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.

Declaration
public static IEndpointConventionBuilder MapForwarder(this IEndpointRouteBuilder endpoints, string pattern, string destinationPrefix, ForwarderRequestConfig requestConfig, HttpTransformer transformer)
Parameters
Type Name Description
IEndpointRouteBuilder endpoints
String pattern
String destinationPrefix
ForwarderRequestConfig requestConfig
HttpTransformer transformer
Returns
Type Description
IEndpointConventionBuilder
| Improve this Doc View Source

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.

Declaration
public static IEndpointConventionBuilder MapForwarder(this IEndpointRouteBuilder endpoints, string pattern, string destinationPrefix, ForwarderRequestConfig requestConfig, HttpTransformer transformer, HttpMessageInvoker httpClient)
Parameters
Type Name Description
IEndpointRouteBuilder endpoints
String pattern
String destinationPrefix
ForwarderRequestConfig requestConfig
HttpTransformer transformer
HttpMessageInvoker httpClient
Returns
Type Description
IEndpointConventionBuilder
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX