Struct hyper_boring::HttpsConnector [−][src]
pub struct HttpsConnector<T> { /* fields omitted */ }Expand description
A Connector using OpenSSL to support http and https schemes.
Implementations
Creates a a new HttpsConnector using default settings.
The Hyper HttpConnector is used to perform the TCP socket connection. ALPN is configured to support both
HTTP/2 and HTTP/1.1.
Requires the runtime Cargo feature.
pub fn with_connector(
http: S,
ssl: SslConnectorBuilder
) -> Result<HttpsConnector<S>, ErrorStack>
pub fn with_connector(
http: S,
ssl: SslConnectorBuilder
) -> Result<HttpsConnector<S>, ErrorStack>
Creates a new HttpsConnector.
The session cache configuration of ssl will be overwritten.
pub fn set_callback<F>(&mut self, callback: F) where
F: Fn(&mut ConnectConfiguration, &Uri) -> Result<(), ErrorStack> + 'static + Sync + Send,
pub fn set_callback<F>(&mut self, callback: F) where
F: Fn(&mut ConnectConfiguration, &Uri) -> Result<(), ErrorStack> + 'static + Sync + Send,
Registers a callback which can customize the configuration of each connection.
Trait Implementations
type Response = MaybeHttpsStream<S::Response>
type Response = MaybeHttpsStream<S::Response>
Responses given by the service.
The future response value.
Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Auto Trait Implementations
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
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
