pub struct Http11Protocol { /* private fields */ }
Expand description
The Protocol
implementation provides HTTP/1.1 messages.
Implementations§
Source§impl Http11Protocol
impl Http11Protocol
Sourcepub fn with_connector<C, S>(c: C) -> Http11Protocol
pub fn with_connector<C, S>(c: C) -> Http11Protocol
Creates a new Http11Protocol
instance that will use the given NetworkConnector
for
establishing HTTP connections.
Trait Implementations§
Source§impl Protocol for Http11Protocol
impl Protocol for Http11Protocol
Source§fn new_message(
&self,
host: &str,
port: u16,
scheme: &str,
) -> Result<Box<dyn HttpMessage>, Error>
fn new_message( &self, host: &str, port: u16, scheme: &str, ) -> Result<Box<dyn HttpMessage>, Error>
Creates a fresh
HttpMessage
bound to the given host, based on the given protocol scheme.Auto Trait Implementations§
impl Freeze for Http11Protocol
impl !RefUnwindSafe for Http11Protocol
impl Send for Http11Protocol
impl Sync for Http11Protocol
impl Unpin for Http11Protocol
impl !UnwindSafe for Http11Protocol
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