Struct hyper_boring::HttpsLayer [−][src]
pub struct HttpsLayer { /* fields omitted */ }Expand description
A layer which wraps services in an HttpsConnector.
Implementations
Creates a new HttpsLayer with default settings.
ALPN is configured to support both HTTP/1 and HTTP/1.1.
Creates a new HttpsLayer.
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 Service = HttpsConnector<S>
type Service = HttpsConnector<S>
The wrapped service
Wrap the given service with the middleware, returning a new service that has been decorated with the middleware. Read more
Auto Trait Implementations
impl !RefUnwindSafe for HttpsLayer
impl Send for HttpsLayer
impl Sync for HttpsLayer
impl Unpin for HttpsLayer
impl !UnwindSafe for HttpsLayer
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
