Struct hyper_openssl::HttpsConnector
[−]
[src]
pub struct HttpsConnector<T> { /* fields omitted */ }
An Connector using OpenSSL to support http
and https
schemes.
Methods
impl HttpsConnector<HttpConnector>
[src]
fn new(
threads: usize,
handle: &Handle
) -> Result<HttpsConnector<HttpConnector>, ErrorStack>
threads: usize,
handle: &Handle
) -> Result<HttpsConnector<HttpConnector>, ErrorStack>
Creates a new HttpsConnector
with default settings and using the
standard Hyper HttpConnector
.
impl<T> HttpsConnector<T> where
T: Connect,
[src]
T: Connect,
fn with_connector(http: T, ssl: SslConnector) -> HttpsConnector<T>
Creates a new HttpsConnector
.
fn danger_disable_hostname_verification(&mut self, disable_verification: bool)
If set, the
SslConnector::danger_connect_without_providing_domain_for_certificate_verification_and_server_name_indication
method will be used to connect.
If certificate verification has been disabled in the SslConnector
, verification must be
additionally disabled here for that setting to take effect.
fn ssl_callback<F>(&mut self, callback: F) where
F: Fn(&mut SslRef, &Uri) -> Result<(), ErrorStack> + 'static + Sync + Send,
F: Fn(&mut SslRef, &Uri) -> Result<(), ErrorStack> + 'static + Sync + Send,
Registers a callback which can customize the Ssl
of each connection.
It is provided with a reference to the SslRef
as well as the URI.
Trait Implementations
impl<T: Clone> Clone for HttpsConnector<T>
[src]
fn clone(&self) -> HttpsConnector<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<T> Service for HttpsConnector<T> where
T: Connect,
[src]
T: Connect,
type Request = Uri
Requests handled by the service.
type Response = MaybeHttpsStream<T::Output>
Responses given by the service.
type Error = Error
Errors produced by the service.
type Future = ConnectFuture<T>
The future response value.
fn call(&self, uri: Uri) -> ConnectFuture<T>
Process the request and return the response asynchronously.