pub fn ensure_rustls_crypto_provider() {
let _ = rustls::crypto::ring::default_provider().install_default();
}
pub fn reqwest_client() -> reqwest::Client {
ensure_rustls_crypto_provider();
reqwest_client_builder()
.build()
.expect("build platform HTTP client")
}
pub fn reqwest_client_builder() -> reqwest::ClientBuilder {
ensure_rustls_crypto_provider();
crate::platform_http_client_builder()
}
pub fn reqwest_blocking_client_builder() -> reqwest::blocking::ClientBuilder {
ensure_rustls_crypto_provider();
crate::platform_blocking_http_client_builder()
}