pub struct ResponseHead {
pub status: u16,
pub headers: Vec<(String, String)>,
pub final_url: String,
pub hops: u32,
pub attempts: u32,
/* private fields */
}Expand description
Status line and headers of a response whose body was not read; see
Client::send_headers.
Fields§
§status: u16§headers: Vec<(String, String)>Lower-cased header names.
final_url: StringURL of the response after the redirects that were followed. It is the caller’s own
URL data and keeps any query string; Debug redacts it.
hops: u32Redirects followed to reach final_url.
attempts: u32HTTP requests made, counting retries (not redirect hops).
Implementations§
Source§impl ResponseHead
impl ResponseHead
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