Struct simple_hyper_client::HttpsConnector
source · pub struct HttpsConnector { /* private fields */ }
Expand description
An HTTPS connector using native-tls.
TLS use is enforced by default. To allow plain http
URIs call
[fn allow_http_scheme()
].
Implementations§
source§impl HttpsConnector
impl HttpsConnector
pub fn new(tls: TlsConnector) -> Self
sourcepub fn allow_http_scheme(self) -> Self
pub fn allow_http_scheme(self) -> Self
If called, the connector will allow URIs with the http
scheme.
Otherwise only URIs with the https
scheme are allowed.