Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

YarpHttpClientConfig

Struct
📦 Aspire.Hosting.Yarp v17.0.0

Represents HTTP client configuration for a YARP cluster.

type YarpHttpClientConfig struct {
DangerousAcceptAnyServerCertificate *bool `json:"DangerousAcceptAnyServerCertificate"`
EnableMultipleHttp2Connections *bool `json:"EnableMultipleHttp2Connections"`
MaxConnectionsPerServer *float64 `json:"MaxConnectionsPerServer"`
RequestHeaderEncoding *string `json:"RequestHeaderEncoding"`
ResponseHeaderEncoding *string `json:"ResponseHeaderEncoding"`
SslProtocols []YarpSslProtocol `json:"SslProtocols"`
WebProxy *YarpWebProxyConfig `json:"WebProxy"`
}

Fields

DangerousAcceptAnyServerCertificate*booloptional
Gets or sets a value indicating whether to accept any server certificate.
EnableMultipleHttp2Connections*booloptional
Gets or sets a value indicating whether multiple HTTP/2 connections are enabled.
MaxConnectionsPerServer*float64optional
Gets or sets the maximum connections per server.
RequestHeaderEncoding*string
Gets or sets the request header encoding.
ResponseHeaderEncoding*string
Gets or sets the response header encoding.
SslProtocols[]YarpSslProtocol
Gets or sets the SSL protocols to enable.
WebProxy*YarpWebProxyConfig
Gets or sets the web proxy configuration.