pub struct ResponseInfo {
pub status: u16,
pub status_text: String,
pub headers: Vec<(String, String)>,
}Expand description
Information about a response paused at the Response stage.
Headers are a Vec<(name, value)> so duplicate-keyed response headers
(notably Set-Cookie) are not silently merged into a single value.
Fields§
§status: u16HTTP status code.
status_text: StringHTTP status line text (e.g. "OK", "Not Found").
headers: Vec<(String, String)>Response headers in Chrome’s emission order; duplicates preserved.
Trait Implementations§
Source§impl Clone for ResponseInfo
impl Clone for ResponseInfo
Source§fn clone(&self) -> ResponseInfo
fn clone(&self) -> ResponseInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResponseInfo
impl RefUnwindSafe for ResponseInfo
impl Send for ResponseInfo
impl Sync for ResponseInfo
impl Unpin for ResponseInfo
impl UnsafeUnpin for ResponseInfo
impl UnwindSafe for ResponseInfo
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