pub struct ResponseHead {
pub version: Version,
pub status: StatusCode,
pub headers: HeaderMap,
pub body: BodyKind,
}Expand description
A parsed response head.
Fields§
§version: Version§status: StatusCode§headers: HeaderMap§body: BodyKindImplementations§
Source§impl ResponseHead
impl ResponseHead
Sourcepub fn status_forbids_body(status: StatusCode) -> bool
pub fn status_forbids_body(status: StatusCode) -> bool
true when the status carries no body by definition.
Trait Implementations§
Source§impl Clone for ResponseHead
impl Clone for ResponseHead
Auto Trait Implementations§
impl Freeze for ResponseHead
impl RefUnwindSafe for ResponseHead
impl Send for ResponseHead
impl Sync for ResponseHead
impl Unpin for ResponseHead
impl UnsafeUnpin for ResponseHead
impl UnwindSafe for ResponseHead
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