pub struct HttpHead {
pub status: u16,
pub reason: String,
pub headers: Vec<(String, String)>,
}Expand description
A parsed HTTP response head: status line plus headers.
Fields§
§status: u16Numeric status code from the status line.
reason: StringReason phrase (everything after the status code on the status line); may be empty.
headers: Vec<(String, String)>Header field name/value pairs in the order received. Values are trimmed.
Implementations§
Trait Implementations§
impl Eq for HttpHead
impl StructuralPartialEq for HttpHead
Auto Trait Implementations§
impl Freeze for HttpHead
impl RefUnwindSafe for HttpHead
impl Send for HttpHead
impl Sync for HttpHead
impl Unpin for HttpHead
impl UnsafeUnpin for HttpHead
impl UnwindSafe for HttpHead
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