123456789101112131415161718192021222324252627282930module juptune.http.client;
struct HttpClientConfig
{
/++ FUNCTIONS ++/
///
HttpClientConfig withHttp1Config(Http1Config v);
///
HttpClientConfig withHttpVersion(HttpClientVersion v);
///
HttpClientConfig withReadBufferSize(ulong v);
///
HttpClientConfig withTlsConfig(TlsConfig v);
///
HttpClientConfig withWriteBufferSize(ulong v);
/++ VARIABLES ++/
/// Configuration for HTTP/1.1 - this defaults to a 30 second timeout for both reading and writing.
Http1Config http1;
/// Which version of HTTP to use when connecting to a server.
HttpClientVersion httpVersion;
/// The size of the read buffer to use.
ulong readBufferSize;
/// Configuration for TLS sockets - this defaults to a 30 second timeout for both reading and writing.
TlsConfig tls;
/// The size of the write buffer to use.
ulong writeBufferSize;
}
Configuration for a HttpClient.
| Name | Description |
|---|---|
| withHttp1Config | |
| withHttpVersion | |
| withReadBufferSize | |
| withTlsConfig | |
| withWriteBufferSize |
| Name | Description |
|---|---|
| http1 |
Configuration for HTTP/1.1 - this defaults to a 30 second timeout for both reading and writing. |
| httpVersion |
Which version of HTTP to use when connecting to a server. |
| readBufferSize |
The size of the read buffer to use. |
| tls |
Configuration for TLS sockets - this defaults to a 30 second timeout for both reading and writing. |
| writeBufferSize |
The size of the write buffer to use. |