[−][src]Struct hyper::client::connect::Connected
Extra information about the connected transport.
This can be used to inform recipients about things like if ALPN was used, or if connected to an HTTP proxy.
Methods
impl Connected[src]
impl Connectedpub fn new() -> Connected[src]
pub fn new() -> ConnectedCreate new Connected type with empty metadata.
pub fn proxy(self, is_proxied: bool) -> Connected[src]
pub fn proxy(self, is_proxied: bool) -> ConnectedSet whether the connected transport is to an HTTP proxy.
This setting will affect if HTTP/1 requests written on the transport
will have the request-target in absolute-form or origin-form (such as
GET http://hyper.rs/guide HTTP/1.1 or GET /guide HTTP/1.1).
Default is false.
pub fn extra<T: Clone + Send + Sync + 'static>(self, extra: T) -> Connected[src]
pub fn extra<T: Clone + Send + Sync + 'static>(self, extra: T) -> ConnectedSet extra connection information to be set in the extensions of every Response.
pub fn negotiated_h2(self) -> Connected[src]
pub fn negotiated_h2(self) -> ConnectedSet that the connected transport negotiated HTTP/2 as it's next protocol.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> From for T[src]
impl<T> From for Timpl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut Timpl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeIdimpl<T> Erased for T
impl<T> Erased for T