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