pub struct HttpHead {
pub status: u16,
pub status_text: String,
pub url: String,
pub redirected: bool,
pub headers: Vec<(String, String)>,
}Expand description
The status line and headers of a response, before its body.
Fields§
§status: u16Status code.
status_text: StringReason phrase, if the stack reports one.
url: StringFinal URL, after redirects.
redirected: boolTrue if a redirect was followed.
headers: Vec<(String, String)>Header names and values.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.