Del via


IHttpForwarderExtensions.SendAsync Method

Definition

Overloads

SendAsync(IHttpForwarder, HttpContext, String, HttpMessageInvoker)

Forwards the incoming request to the destination server, and the response back to the client.

SendAsync(IHttpForwarder, HttpContext, String, HttpMessageInvoker, Func<HttpContext,HttpRequestMessage,ValueTask>)

Forwards the incoming request to the destination server, and the response back to the client.

SendAsync(IHttpForwarder, HttpContext, String, HttpMessageInvoker, ForwarderRequestConfig)

Forwards the incoming request to the destination server, and the response back to the client.

SendAsync(IHttpForwarder, HttpContext, String, HttpMessageInvoker, ForwarderRequestConfig, Func<HttpContext,HttpRequestMessage,ValueTask>)

Forwards the incoming request to the destination server, and the response back to the client.

SendAsync(IHttpForwarder, HttpContext, String, HttpMessageInvoker)

Source:
IHttpForwarderExtensions.cs
Source:
IHttpForwarderExtensions.cs

Forwards the incoming request to the destination server, and the response back to the client.

public static System.Threading.Tasks.ValueTask<Yarp.ReverseProxy.Forwarder.ForwarderError> SendAsync (this Yarp.ReverseProxy.Forwarder.IHttpForwarder forwarder, Microsoft.AspNetCore.Http.HttpContext context, string destinationPrefix, System.Net.Http.HttpMessageInvoker httpClient);
static member SendAsync : Yarp.ReverseProxy.Forwarder.IHttpForwarder * Microsoft.AspNetCore.Http.HttpContext * string * System.Net.Http.HttpMessageInvoker -> System.Threading.Tasks.ValueTask<Yarp.ReverseProxy.Forwarder.ForwarderError>
<Extension()>
Public Function SendAsync (forwarder As IHttpForwarder, context As HttpContext, destinationPrefix As String, httpClient As HttpMessageInvoker) As ValueTask(Of ForwarderError)

Parameters

forwarder
IHttpForwarder

The forwarder instance.

context
HttpContext

The HttpContext to forward.

destinationPrefix
String

The url prefix for where to forward the request to.

httpClient
HttpMessageInvoker

The HTTP client used to forward the request.

Returns

The status of a forwarding operation.

Applies to

SendAsync(IHttpForwarder, HttpContext, String, HttpMessageInvoker, Func<HttpContext,HttpRequestMessage,ValueTask>)

Source:
IHttpForwarderExtensions.cs
Source:
IHttpForwarderExtensions.cs

Forwards the incoming request to the destination server, and the response back to the client.

public static System.Threading.Tasks.ValueTask<Yarp.ReverseProxy.Forwarder.ForwarderError> SendAsync (this Yarp.ReverseProxy.Forwarder.IHttpForwarder forwarder, Microsoft.AspNetCore.Http.HttpContext context, string destinationPrefix, System.Net.Http.HttpMessageInvoker httpClient, Func<Microsoft.AspNetCore.Http.HttpContext,System.Net.Http.HttpRequestMessage,System.Threading.Tasks.ValueTask> requestTransform);
static member SendAsync : Yarp.ReverseProxy.Forwarder.IHttpForwarder * Microsoft.AspNetCore.Http.HttpContext * string * System.Net.Http.HttpMessageInvoker * Func<Microsoft.AspNetCore.Http.HttpContext, System.Net.Http.HttpRequestMessage, System.Threading.Tasks.ValueTask> -> System.Threading.Tasks.ValueTask<Yarp.ReverseProxy.Forwarder.ForwarderError>
<Extension()>
Public Function SendAsync (forwarder As IHttpForwarder, context As HttpContext, destinationPrefix As String, httpClient As HttpMessageInvoker, requestTransform As Func(Of HttpContext, HttpRequestMessage, ValueTask)) As ValueTask(Of ForwarderError)

Parameters

forwarder
IHttpForwarder

The forwarder instance.

context
HttpContext

The HttpContext to forward.

destinationPrefix
String

The url prefix for where to forward the request to.

httpClient
HttpMessageInvoker

The HTTP client used to forward the request.

requestTransform
Func<HttpContext,HttpRequestMessage,ValueTask>

Transform function to apply to the forwarded request.

Returns

The status of a forwarding operation.

Applies to

SendAsync(IHttpForwarder, HttpContext, String, HttpMessageInvoker, ForwarderRequestConfig)

Source:
IHttpForwarderExtensions.cs
Source:
IHttpForwarderExtensions.cs

Forwards the incoming request to the destination server, and the response back to the client.

public static System.Threading.Tasks.ValueTask<Yarp.ReverseProxy.Forwarder.ForwarderError> SendAsync (this Yarp.ReverseProxy.Forwarder.IHttpForwarder forwarder, Microsoft.AspNetCore.Http.HttpContext context, string destinationPrefix, System.Net.Http.HttpMessageInvoker httpClient, Yarp.ReverseProxy.Forwarder.ForwarderRequestConfig requestConfig);
static member SendAsync : Yarp.ReverseProxy.Forwarder.IHttpForwarder * Microsoft.AspNetCore.Http.HttpContext * string * System.Net.Http.HttpMessageInvoker * Yarp.ReverseProxy.Forwarder.ForwarderRequestConfig -> System.Threading.Tasks.ValueTask<Yarp.ReverseProxy.Forwarder.ForwarderError>
<Extension()>
Public Function SendAsync (forwarder As IHttpForwarder, context As HttpContext, destinationPrefix As String, httpClient As HttpMessageInvoker, requestConfig As ForwarderRequestConfig) As ValueTask(Of ForwarderError)

Parameters

forwarder
IHttpForwarder

The forwarder instance.

context
HttpContext

The HttpContext to forward.

destinationPrefix
String

The url prefix for where to forward the request to.

httpClient
HttpMessageInvoker

The HTTP client used to forward the request.

requestConfig
ForwarderRequestConfig

Config for the outgoing request.

Returns

The status of a forwarding operation.

Applies to

SendAsync(IHttpForwarder, HttpContext, String, HttpMessageInvoker, ForwarderRequestConfig, Func<HttpContext,HttpRequestMessage,ValueTask>)

Source:
IHttpForwarderExtensions.cs
Source:
IHttpForwarderExtensions.cs

Forwards the incoming request to the destination server, and the response back to the client.

public static System.Threading.Tasks.ValueTask<Yarp.ReverseProxy.Forwarder.ForwarderError> SendAsync (this Yarp.ReverseProxy.Forwarder.IHttpForwarder forwarder, Microsoft.AspNetCore.Http.HttpContext context, string destinationPrefix, System.Net.Http.HttpMessageInvoker httpClient, Yarp.ReverseProxy.Forwarder.ForwarderRequestConfig requestConfig, Func<Microsoft.AspNetCore.Http.HttpContext,System.Net.Http.HttpRequestMessage,System.Threading.Tasks.ValueTask> requestTransform);
static member SendAsync : Yarp.ReverseProxy.Forwarder.IHttpForwarder * Microsoft.AspNetCore.Http.HttpContext * string * System.Net.Http.HttpMessageInvoker * Yarp.ReverseProxy.Forwarder.ForwarderRequestConfig * Func<Microsoft.AspNetCore.Http.HttpContext, System.Net.Http.HttpRequestMessage, System.Threading.Tasks.ValueTask> -> System.Threading.Tasks.ValueTask<Yarp.ReverseProxy.Forwarder.ForwarderError>
<Extension()>
Public Function SendAsync (forwarder As IHttpForwarder, context As HttpContext, destinationPrefix As String, httpClient As HttpMessageInvoker, requestConfig As ForwarderRequestConfig, requestTransform As Func(Of HttpContext, HttpRequestMessage, ValueTask)) As ValueTask(Of ForwarderError)

Parameters

forwarder
IHttpForwarder

The forwarder instance.

context
HttpContext

The HttpContext to forward.

destinationPrefix
String

The url prefix for where to forward the request to.

httpClient
HttpMessageInvoker

The HTTP client used to forward the request.

requestConfig
ForwarderRequestConfig

Config for the outgoing request.

requestTransform
Func<HttpContext,HttpRequestMessage,ValueTask>

Transform function to apply to the forwarded request.

Returns

The status of a forwarding operation.

Applies to