Marmos
v juptune
v asn1
v lang
v ast
v Classes
v Enums
v ir
v parser
v Enums
v Structs
v core
v crypto
v keyexchange
v memory
v data
v alphabet
v buffer
v json
v builder
v parser
v Enums
v Structs
v serialise
v Structs
v Templates
v pem
v Enums
v Structs

Structs HttpClientConfig

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
module 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;
}

Documentation

Configuration for a HttpClient.

Functions

Name Description
withHttp1Config
withHttpVersion
withReadBufferSize
withTlsConfig
withWriteBufferSize

Variables

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.