Module https

Module https 

Source
Expand description

Module to resolve the HTTPS Connector / Client used to make requests, depending on which TLS implementation we want to use.

For instance, when building for the x86_64-unknown-linux-musl target like we do for AWS Lambda deployments, we want to prefer to use hyper_rustls - which uses a pure Rust implementation of TLS - over the native hyper_tls implementation, which uses OpenSSL. For that reason, using the connector from the hyper_rustls crate is actually the default.

This can be controlled by the optional “features” enabled for this crate: * rust-tls: enables the rust implementation of TLS (default) * native-tls: enables the native implementation of TLS using OpenSSL

Re-exports§

pub use hyper_rustls as tls;

Functions§

get_https_client