pub struct Head {
pub status: u16,
pub headers: Vec<(String, String)>,
pub url: String,
pub expected_length: Option<u64>,
}Expand description
The response head.
Fields§
§status: u16§headers: Vec<(String, String)>In arrival order, duplicates preserved.
url: StringThe URL that answered, after any redirects the stack followed itself.
expected_length: Option<u64>Content-Length, when the response declared one.
Implementations§
Trait Implementations§
impl Eq for Head
impl StructuralPartialEq for Head
Auto Trait Implementations§
impl Forget for Head
impl Freeze for Head
impl Move for Head
impl RefUnwindSafe for Head
impl Send for Head
impl Sync for Head
impl Unpin for Head
impl UnsafeUnpin for Head
impl UnwindSafe for Head
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