Struct hyper::proto::MessageHead
source · pub(crate) struct MessageHead<S> {
pub(crate) version: Version,
pub(crate) subject: S,
pub(crate) headers: HeaderMap,
extensions: Extensions,
}
Expand description
An Incoming Message head. Includes request/status line, and headers.
Fields§
§version: Version
HTTP version of the message.
subject: S
Subject (request line or status line) of Incoming message.
headers: HeaderMap
Headers of the Incoming message.
extensions: Extensions
Extensions.
Implementations§
source§impl MessageHead<StatusCode>
impl MessageHead<StatusCode>
fn into_response<B>(self, body: B) -> Response<B>
Trait Implementations§
source§impl<S: Debug> Debug for MessageHead<S>
impl<S: Debug> Debug for MessageHead<S>
source§impl<S: Default> Default for MessageHead<S>
impl<S: Default> Default for MessageHead<S>
source§fn default() -> MessageHead<S>
fn default() -> MessageHead<S>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<S> Freeze for MessageHead<S>where
S: Freeze,
impl<S> !RefUnwindSafe for MessageHead<S>
impl<S> Send for MessageHead<S>where
S: Send,
impl<S> Sync for MessageHead<S>where
S: Sync,
impl<S> Unpin for MessageHead<S>where
S: Unpin,
impl<S> !UnwindSafe for MessageHead<S>
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