pub struct HttpsConnector<T> { /* private fields */ }
Expand description
A Connector using OpenSSL supporting http
and https
schemes.
Implementations§
Source§impl HttpsConnector<HttpConnector>
impl HttpsConnector<HttpConnector>
Sourcepub fn new() -> Result<Self, ErrorStack>
pub fn new() -> Result<Self, ErrorStack>
Creates a new HttpsConnector
using default settings.
The Hyper HttpConnector
is used to perform the TCP socket connection. ALPN is configured to support both
HTTP/1.1 and HTTP/2.
Source§impl<S> HttpsConnector<S>
impl<S> HttpsConnector<S>
Sourcepub fn with_connector(
http: S,
ssl: SslConnectorBuilder,
) -> Result<Self, ErrorStack>
pub fn with_connector( http: S, ssl: SslConnectorBuilder, ) -> Result<Self, ErrorStack>
Creates a new HttpsConnector
.
The session cache configuration of ssl
will be overwritten.
Sourcepub fn set_callback<F>(&mut self, callback: F)
pub fn set_callback<F>(&mut self, callback: F)
Registers a callback which can customize the configuration of each connection.
Trait Implementations§
Source§impl<T: Clone> Clone for HttpsConnector<T>
impl<T: Clone> Clone for HttpsConnector<T>
Source§fn clone(&self) -> HttpsConnector<T>
fn clone(&self) -> HttpsConnector<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<S> Service<Uri> for HttpsConnector<S>
impl<S> Service<Uri> for HttpsConnector<S>
Source§type Response = MaybeHttpsStream<<S as Service<Uri>>::Response>
type Response = MaybeHttpsStream<<S as Service<Uri>>::Response>
Responses given by the service.
Source§type Future = Pin<Box<dyn Future<Output = Result<<HttpsConnector<S> as Service<Uri>>::Response, <HttpsConnector<S> as Service<Uri>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<HttpsConnector<S> as Service<Uri>>::Response, <HttpsConnector<S> as Service<Uri>>::Error>> + Send>>
The future response value.
Auto Trait Implementations§
impl<T> Freeze for HttpsConnector<T>where
T: Freeze,
impl<T> !RefUnwindSafe for HttpsConnector<T>
impl<T> Send for HttpsConnector<T>where
T: Send,
impl<T> Sync for HttpsConnector<T>where
T: Sync,
impl<T> Unpin for HttpsConnector<T>where
T: Unpin,
impl<T> !UnwindSafe for HttpsConnector<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more