Skip to main content

Module rustls

Module rustls 

Source
Available on crate feature rustls-tls only.
Expand description

Functions for configuring the default CryptoProvider when using reqwest with rustls’s implementation of TLS.

Functions§

default_crypto_provider
The default CryptoProvider preferred by this crate.
install_default_crypto_provider_if_none_installed
The rustls-tls flag enables the rustls implementation of TLS for reqwest, but without a CryptoProvider. This means that no default provider is installed, which will cause reqwest::Client::new() to panic.