rustls_default

Function rustls_default 

Source
pub fn rustls_default<B>() -> Client<RustlsConnector<HttpConnector>, B>
where B: HttpBody + Send, B::Data: Send,
Available on (crate features http1 or http2) and crate feature rustls only.
Expand description

With the default hyper_rustls::HttpsConnector.

The config is determined as follows. I think the cert root is similar to the reqwest crate.

  1. Cert roots

The feature rustls is equivalent to rustls-webpki-roots.

  1. Scheme

HTTPS only

  1. HTTP version

This is not exclusive: if both features are enabled, then both methods are called.