HttpClientOptions
data class HttpClientOptions(var extraRootCertificates: List<ByteArray> = listOf(), var excludePlatformRoots: Boolean = false, var excludeBundledRoots: Boolean = false, var timeoutMs: ULong? = null, var userAgent: String? = null)
How the SDK should build the HTTP client backing a connection.
Constructors
| HttpClientOptions | constructor(extraRootCertificates: List<ByteArray> = listOf(), excludePlatformRoots: Boolean = false, excludeBundledRoots: Boolean = false, timeoutMs: ULong? = null, userAgent: String? = null) |
Properties
| Name | Summary |
|---|---|
| excludeBundledRoots | var excludeBundledRoots: Boolean Ignore the bundled Mozilla roots, trusting only the platform trust store and extra_root_certificates. Combined with exclude_platform_roots, only extra_root_certificates is trusted, which must then be non-empty. |
| excludePlatformRoots | var excludePlatformRoots: Boolean Ignore the platform trust store, trusting only the bundled roots and extra_root_certificates. Combined with exclude_bundled_roots, only extra_root_certificates is trusted, which must then be non-empty. |
| extraRootCertificates | var extraRootCertificates: List<ByteArray> Additional DER-encoded CA certificates to trust, on top of the platform trust store and the bundled roots. |
| timeoutMs | var timeoutMs: ULong? Total request timeout in milliseconds. None leaves it unbounded. |
| userAgent | var userAgent: String? Replaces the User-Agent the bindings would otherwise send. |