pub struct Response {
pub status: u16,
pub status_text: String,
pub headers: HashMap<String, String>,
pub set_cookies: Vec<String>,
pub body: Vec<u8>,
pub url: String,
pub accept_ch_upgrade: bool,
pub timings: TimingStats,
}Fields§
§status: u16§status_text: String§headers: HashMap<String, String>All Set-Cookie header values, preserved separately because HTTP responses can contain multiple Set-Cookie headers.
body: Vec<u8>§url: String§accept_ch_upgrade: boolWhether this response taught the client Accept-CH for the first time.
timings: TimingStatsImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
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