Skip to main content

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​

HttpClientOptionsconstructor(extraRootCertificates: List<ByteArray> = listOf(), excludePlatformRoots: Boolean = false, excludeBundledRoots: Boolean = false, timeoutMs: ULong? = null, userAgent: String? = null)

Properties​

NameSummary
excludeBundledRootsvar 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.
excludePlatformRootsvar 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.
extraRootCertificatesvar extraRootCertificates: List<ByteArray>
Additional DER-encoded CA certificates to trust, on top of the platform trust store and the bundled roots.
timeoutMsvar timeoutMs: ULong?
Total request timeout in milliseconds. None leaves it unbounded.
userAgentvar userAgent: String?
Replaces the User-Agent the bindings would otherwise send.