Delen via


HttpClientConfig Class

Definition

Options used for communicating with the destination servers.

public sealed class HttpClientConfig : IEquatable<Yarp.ReverseProxy.Configuration.HttpClientConfig>
type HttpClientConfig = class
    interface IEquatable<HttpClientConfig>
Public NotInheritable Class HttpClientConfig
Implements IEquatable(Of HttpClientConfig)
Inheritance
HttpClientConfig
Implements

Remarks

If you need a more granular approach, please use a custom implementation of IForwarderHttpClientFactory.

Constructors

HttpClientConfig()

Fields

Empty

An empty options instance.

Properties

DangerousAcceptAnyServerCertificate

Indicates if destination server https certificate errors should be ignored. This should only be done when using self-signed certificates.

EnableMultipleHttp2Connections

Gets or sets a value that indicates whether additional HTTP/2 connections can be established to the same server when the maximum number of concurrent streams is reached on all existing connections.

MaxConnectionsPerServer

Limits the number of connections used when communicating with the destination server.

RequestHeaderEncoding

Allows overriding the default (ASCII) encoding for outgoing request headers.

Setting this value will in turn set RequestHeaderEncodingSelector and use the selected encoding for all request headers. The value is then parsed by GetEncoding(String), so use values like: "utf-8", "iso-8859-1", etc.

ResponseHeaderEncoding

Allows overriding the default (Latin1) encoding for incoming request headers.

Setting this value will in turn set ResponseHeaderEncodingSelector and use the selected encoding for all response headers. The value is then parsed by GetEncoding(String), so use values like: "utf-8", "iso-8859-1", etc.

SslProtocols

What TLS protocols to use.

WebProxy

Optional web proxy used when communicating with the destination server.

Methods

<Clone>$()
Equals(HttpClientConfig)
Equals(Object)
GetHashCode()
ToString()

Operators

Equality(HttpClientConfig, HttpClientConfig)
Inequality(HttpClientConfig, HttpClientConfig)

Applies to