Skip to main content

Type Alias: HttpClientOptions

type HttpClientOptions = {
excludeBundledRoots: boolean;
excludePlatformRoots: boolean;
extraRootCertificates: ArrayBuffer[];
timeoutMs?: bigint;
userAgent?: string;
};

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

Properties​

excludeBundledRoots​

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​

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​

extraRootCertificates: ArrayBuffer[];

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


timeoutMs?​

timeoutMs?: bigint;

Total request timeout in milliseconds. None leaves it unbounded.


userAgent?​

userAgent?: string;

Replaces the User-Agent the bindings would otherwise send.