pub struct InterceptedResponse {
pub request_id: String,
pub status_code: i64,
pub status_text: String,
pub headers: HashMap<String, String>,
pub base_64_encoded: bool,
pub body: Option<String>,
}Expand description
Metadata captured for an intercepted response.
Fields§
§request_id: StringThe CDP-assigned request identifier.
status_code: i64HTTP status code.
status_text: StringStatus text.
headers: HashMap<String, String>Response headers.
base_64_encoded: boolResponse body captured for the request.
- When available the payload contains either raw text or a base64 encoded blob.
- Requests with no body (304, 204, and similar) leave this as
None. - Binary responses are stored using base64 encoding.
body: Option<String>Trait Implementations§
Source§impl Clone for InterceptedResponse
impl Clone for InterceptedResponse
Source§fn clone(&self) -> InterceptedResponse
fn clone(&self) -> InterceptedResponse
Returns a duplicate of the value. Read more
1.0.0 · 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 InterceptedResponse
impl RefUnwindSafe for InterceptedResponse
impl Send for InterceptedResponse
impl Sync for InterceptedResponse
impl Unpin for InterceptedResponse
impl UnwindSafe for InterceptedResponse
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