123456789101112131415161718192021222324252627282930module juptune.http.tls.common;
struct TlsConfig
{
/++ FUNCTIONS ++/
///
TlsConfig withAlwaysTimeout(bool v);
///
TlsConfig withDumpCerts(bool v);
///
TlsConfig withMaxFragmentReadAttempts(ubyte v);
///
TlsConfig withReadTimeout(Duration v);
///
TlsConfig withWriteTimeout(Duration v);
/++ VARIABLES ++/
/// Whether the generic driver interface should always timeout, even when Duration.zero is passed into it.
bool alwaysTimeout;
/// A debug-oriented flag to dump any certs encountered. Mainly for internal use. Look for stuff under /tmp/juptune for raw DER bytes of certs in the cert chain.
bool dumpCerts;
/// How many attempts are made to fully read in a record's fragment data before an error is thrown
ubyte maxFragmentReadAttempts;
/// The default timeout for reading data
Duration readTimeout;
/// The default timeout for writing data
Duration writeTimeout;
}
| Name | Description |
|---|---|
| withAlwaysTimeout | |
| withDumpCerts | |
| withMaxFragmentReadAttempts | |
| withReadTimeout | |
| withWriteTimeout |
| Name | Description |
|---|---|
| alwaysTimeout |
Whether the generic driver interface should always timeout, even when Duration.zero is passed into it. |
| dumpCerts |
A debug-oriented flag to dump any certs encountered. Mainly for internal use. Look for stuff under /tmp/juptune for raw DER bytes of certs in the cert chain. |
| maxFragmentReadAttempts |
How many attempts are made to fully read in a record's fragment data before an error is thrown |
| readTimeout |
The default timeout for reading data |
| writeTimeout |
The default timeout for writing data |