Skip to main content

HttpClientOptions

HttpClientOptions​

struct HttpClientOptions

How the SDK should build the HTTP client backing a connection.

init(extraRootCertificates:excludePlatformRoots:excludeBundledRoots:timeoutMs:userAgent:)​

init(extraRootCertificates: [Data] = [], excludePlatformRoots: Bool = false, excludeBundledRoots: Bool = false, timeoutMs: UInt64? = nil, userAgent: String? = nil)

excludeBundledRoots​

var excludeBundledRoots: Bool

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: Bool

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: [Data]

Additional DER-encoded CA certificates to trust, on top of the platform trust store and the bundled roots.

timeoutMs​

var timeoutMs: UInt64?

Total request timeout in milliseconds. None leaves it unbounded.

userAgent​

var userAgent: String?

Replaces the User-Agent the bindings would otherwise send.

!=(_:_:)​

static func != (lhs: Self, rhs: Self) -> Bool

Returns a Boolean value indicating whether two values are not equal.

Inequality is the inverse of equality. For any values a and b, a != b implies that a == b is false.

This is the default implementation of the not-equal-to operator (!=) for any type that conforms to Equatable.

  • Parameters:
    • lhs: A value to compare.
    • rhs: Another value to compare.