Skip to main content

default_client_config

Function default_client_config 

Source
pub fn default_client_config() -> Arc<ClientConfig> 
Expand description

Build a rustls::ClientConfig that trusts the Mozilla root CA bundle (via webpki-roots).

This is the equivalent of Go’s default http.Transport which uses the system root store. For custom CA certificates call client_config_with_roots.