Struct rocket::http::hyper::h1::Http11Protocol [−][src]
pub struct Http11Protocol { /* fields omitted */ }
Expand description
The Protocol
implementation provides HTTP/1.1 messages.
Implementations
impl Http11Protocol
[src]
impl Http11Protocol
[src]pub fn with_connector<C, S>(c: C) -> Http11Protocol where
C: NetworkConnector<Stream = S> + Send + Sync + 'static,
S: NetworkStream + Send,
[src]
pub fn with_connector<C, S>(c: C) -> Http11Protocol where
C: NetworkConnector<Stream = S> + Send + Sync + 'static,
S: NetworkStream + Send,
[src]Creates a new Http11Protocol
instance that will use the given NetworkConnector
for
establishing HTTP connections.
Trait Implementations
impl Protocol for Http11Protocol
[src]
impl Protocol for Http11Protocol
[src]pub fn new_message(
&self,
host: &str,
port: u16,
scheme: &str
) -> Result<Box<dyn HttpMessage + 'static, Global>, Error>
[src]
pub fn new_message(
&self,
host: &str,
port: u16,
scheme: &str
) -> Result<Box<dyn HttpMessage + 'static, Global>, Error>
[src]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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self
into a collection.
pub fn mapped<U, F, A>(self, f: F) -> SmallVec<A> where
F: FnMut(T) -> U,
A: Array<Item = U>,
F: FnMut(T) -> U,
A: Array<Item = U>,
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,