Dela via


ForwarderHttpClientFactory Class

Definition

Default implementation of IForwarderHttpClientFactory.

public class ForwarderHttpClientFactory : Yarp.ReverseProxy.Forwarder.IForwarderHttpClientFactory
type ForwarderHttpClientFactory = class
    interface IForwarderHttpClientFactory
Public Class ForwarderHttpClientFactory
Implements IForwarderHttpClientFactory
Inheritance
ForwarderHttpClientFactory
Implements

Constructors

ForwarderHttpClientFactory()

Initializes a new instance of the ForwarderHttpClientFactory class.

ForwarderHttpClientFactory(ILogger<ForwarderHttpClientFactory>)

Initializes a new instance of the ForwarderHttpClientFactory class.

Methods

CanReuseOldClient(ForwarderHttpClientContext)

Checks if the options have changed since the old client was created. If not then the old client will be re-used. Re-use can avoid the latency of creating new connections.

ConfigureHandler(ForwarderHttpClientContext, SocketsHttpHandler)

Allows configuring the SocketsHttpHandler instance. The base implementation applies settings from NewConfig. UseProxy, AllowAutoRedirect, AutomaticDecompression, and UseCookies are disabled prior to this call.

CreateClient(ForwarderHttpClientContext)

Creates and configures an HttpMessageInvoker instance that can be used for forwarding requests to an upstream server.

WrapHandler(ForwarderHttpClientContext, HttpMessageHandler)

Adds any wrapping middleware around the HttpMessageHandler.

Applies to