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