Struct hyper_openssl::client::legacy::HttpsLayer
source · 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