# YarpHttpClientConfig

- Module: [Aspire.Hosting.Yarp](/reference/api/go/aspire.hosting.yarp.md)
- Version: `17.0.0`
- Kind: `struct`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

Represents HTTP client configuration for a YARP cluster.

## Definition

```go
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`: `*bool` `optional` -- Gets or sets a value indicating whether to accept any server certificate.
- `EnableMultipleHttp2Connections`: `*bool` `optional` -- Gets or sets a value indicating whether multiple HTTP/2 connections are enabled.
- `MaxConnectionsPerServer`: `*float64` `optional` -- 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`](/reference/api/go/aspire.hosting.yarp/yarpsslprotocol.md) -- Gets or sets the SSL protocols to enable.
- `WebProxy`: [`*YarpWebProxyConfig`](/reference/api/go/aspire.hosting.yarp/yarpwebproxyconfig.md) -- Gets or sets the web proxy configuration.
