Struct hyper_rustls::HttpsConnector
source · pub struct HttpsConnector<T> { /* private fields */ }
Expand description
A Connector for the https
scheme.
Implementations§
source§impl<T> HttpsConnector<T>
impl<T> HttpsConnector<T>
sourcepub fn builder() -> ConnectorBuilder<WantsTlsConfig>
pub fn builder() -> ConnectorBuilder<WantsTlsConfig>
Creates a crate::HttpsConnectorBuilder
to configure a HttpsConnector
.
This is the same as crate::HttpsConnectorBuilder::new()
.
sourcepub fn enforce_https(&mut self)
pub fn enforce_https(&mut self)
Force the use of HTTPS when connecting.
If a URL is not https
when connecting, an error is returned.
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<T> Debug for HttpsConnector<T>
impl<T> Debug for HttpsConnector<T>
source§impl<H, C> From<(H, C)> for HttpsConnector<H>
impl<H, C> From<(H, C)> for HttpsConnector<H>
source§impl<T> Service<Uri> for HttpsConnector<T>
impl<T> Service<Uri> for HttpsConnector<T>
source§type Response = MaybeHttpsStream<<T as Service<Uri>>::Response>
type Response = MaybeHttpsStream<<T as Service<Uri>>::Response>
Responses given by the service.
source§type Future = Pin<Box<dyn Future<Output = Result<MaybeHttpsStream<<T as Service<Uri>>::Response>, Box<dyn Error + Sync + Send>>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<MaybeHttpsStream<<T as Service<Uri>>::Response>, Box<dyn Error + Sync + Send>>> + 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)