pub struct GetResponseBody {
pub request_id: RequestId,
}Expand description
Causes the body of the response to be received from the server and
returned as a single string. May only be issued for a request that
is paused in the Response stage and is mutually exclusive with
takeResponseBodyForInterceptionAsStream. Calling other methods that
affect the request or disabling fetch domain before body is received
results in an undefined behavior.
Note that the response body is not available for redirects. Requests
paused in the redirect received state may be differentiated by
responseCode and presence of location response header, see
comments to requestPaused for details.
Fields§
§request_id: RequestIdIdentifier for the intercepted request to get body for.
Trait Implementations§
Source§impl Clone for GetResponseBody
impl Clone for GetResponseBody
Source§fn clone(&self) -> GetResponseBody
fn clone(&self) -> GetResponseBody
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 moreSource§impl Debug for GetResponseBody
impl Debug for GetResponseBody
Source§impl<'de> Deserialize<'de> for GetResponseBody
impl<'de> Deserialize<'de> for GetResponseBody
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Method for GetResponseBody
impl Method for GetResponseBody
const NAME: &'static str = "Fetch.getResponseBody"
type ReturnObject = GetResponseBodyReturnObject
fn to_method_call(self, call_id: CallId) -> MethodCall<Self>where
Self: Sized,
Source§impl PartialEq for GetResponseBody
impl PartialEq for GetResponseBody
Source§impl Serialize for GetResponseBody
impl Serialize for GetResponseBody
impl StructuralPartialEq for GetResponseBody
Auto Trait Implementations§
impl Freeze for GetResponseBody
impl RefUnwindSafe for GetResponseBody
impl Send for GetResponseBody
impl Sync for GetResponseBody
impl Unpin for GetResponseBody
impl UnsafeUnpin for GetResponseBody
impl UnwindSafe for GetResponseBody
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