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 Forget for HttpHead
impl Freeze for HttpHead
impl Move for HttpHead
impl RefUnwindSafe for HttpHead
impl Send for HttpHeadwhere
RawVecInner: Send,
impl Sync for HttpHeadwhere
RawVecInner: Sync,
impl Unpin for HttpHead
impl UnsafeUnpin for HttpHeadwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
impl UnwindSafe for HttpHeadwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.