pub struct HttpsLayer { /* private fields */ }Expand description
A Layer which wraps services in an HttpsConnector.
Implementations§
Source§impl HttpsLayer
impl HttpsLayer
Sourcepub fn new() -> Result<Self, ErrorStack>
pub fn new() -> Result<Self, ErrorStack>
Creates a new HttpsLayer with default settings.
ALPN is configured to support both HTTP/1.1 and HTTP/2.
Sourcepub fn with_connector(ssl: SslConnectorBuilder) -> Result<Self, ErrorStack>
pub fn with_connector(ssl: SslConnectorBuilder) -> Result<Self, ErrorStack>
Creates a new HttpsLayer.
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§
Auto Trait Implementations§
impl Freeze for HttpsLayer
impl !RefUnwindSafe for HttpsLayer
impl Send for HttpsLayer
impl Sync for HttpsLayer
impl Unpin for HttpsLayer
impl !UnwindSafe for HttpsLayer
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