Table of Contents

Class ForwarderHttpClientContext

Namespace
Yarp.ReverseProxy.Forwarder
Assembly
Yarp.ReverseProxy.dll

Contains the old and the new HTTP client configurations.

public class ForwarderHttpClientContext
Inheritance
ForwarderHttpClientContext
Inherited Members

Constructors

ForwarderHttpClientContext()

public ForwarderHttpClientContext()

Properties

ClusterId

Id of a ClusterModel HTTP client belongs to.

public string ClusterId { get; init; }

Property Value

string

NewConfig

New HttpClientConfig instance specifying the settings for a new client.

public HttpClientConfig NewConfig { get; init; }

Property Value

HttpClientConfig

NewMetadata

New metadata instance used for a new client construction, if any.

public IReadOnlyDictionary<string, string>? NewMetadata { get; init; }

Property Value

IReadOnlyDictionary<string, string>

OldClient

Old HttpMessageInvoker instance. Can be null if a client is getting constructed for the first time.

public HttpMessageInvoker? OldClient { get; init; }

Property Value

HttpMessageInvoker

OldConfig

Old HttpClientConfig instance from which the OldClient was created. Can be empty if a client is getting constructed for the first time.

public HttpClientConfig OldConfig { get; init; }

Property Value

HttpClientConfig

OldMetadata

Old metadata instance from which the OldClient was created, if any.

public IReadOnlyDictionary<string, string>? OldMetadata { get; init; }

Property Value

IReadOnlyDictionary<string, string>