pub struct Http11Protocol { /* private fields */ }
Expand description
The Protocol
implementation provides HTTP/1.1 messages.
Implementations
sourceimpl Http11Protocol
impl Http11Protocol
sourcepub fn with_connector<C, S>(c: C) -> Http11Protocol where
C: 'static + NetworkConnector<Stream = S> + Send + Sync,
S: NetworkStream + Send,
pub fn with_connector<C, S>(c: C) -> Http11Protocol where
C: 'static + NetworkConnector<Stream = S> + Send + Sync,
S: NetworkStream + Send,
Creates a new Http11Protocol
instance that will use the given NetworkConnector
for
establishing HTTP connections.
Trait Implementations
sourceimpl Protocol for Http11Protocol
impl Protocol for Http11Protocol
sourcefn new_message(
&self,
host: &str,
port: u16,
scheme: &str
) -> Result<Box<dyn HttpMessage + 'static, Global>, Error>
fn new_message(
&self,
host: &str,
port: u16,
scheme: &str
) -> Result<Box<dyn HttpMessage + 'static, Global>, Error>
Creates a fresh HttpMessage
bound to the given host, based on the given protocol scheme.
Auto Trait Implementations
impl !RefUnwindSafe for Http11Protocol
impl Send for Http11Protocol
impl Sync for Http11Protocol
impl Unpin for Http11Protocol
impl !UnwindSafe for Http11Protocol
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
sourcefn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self
into a collection.