Skip to main content

Module client

Module client 

Source
Expand description

HTTP client construction shared by all API crates.

Centralizing this here ensures the SDK’s TLS stack (rustls + platform verifier) is configured identically everywhere a reqwest::Client is created. On WASM the browser/Node fetch backend is used and no TLS configuration is applied.

Functions§

new_http_client
Returns a [reqwest::Client] built from new_http_client_builder.
new_http_client_builder
Returns a [reqwest::ClientBuilder] preconfigured with the SDK’s TLS settings.