pub struct GetResponseBody {
pub method: GetResponseBodyMethod,
pub params: GetResponseBodyParams,
}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.
getResponseBody
Fields§
§method: GetResponseBodyMethod§params: GetResponseBodyParamsImplementations§
Source§impl GetResponseBody
impl GetResponseBody
pub fn builder() -> GetResponseBodyBuilder
Source§impl GetResponseBody
impl GetResponseBody
pub const IDENTIFIER: &'static str = "Fetch.getResponseBody"
pub fn identifier(&self) -> &'static str
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 CommandResult for GetResponseBody
impl CommandResult for GetResponseBody
type Result = GetResponseBodyResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§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 From<GetResponseBody> for BrowserProtocolCommands
impl From<GetResponseBody> for BrowserProtocolCommands
Source§fn from(v: GetResponseBody) -> Self
fn from(v: GetResponseBody) -> Self
Converts to this type from the input type.
Source§impl From<GetResponseBody> for Command
impl From<GetResponseBody> for Command
Source§fn from(v: GetResponseBody) -> Self
fn from(v: GetResponseBody) -> Self
Converts to this type from the input type.
Source§impl From<GetResponseBody> for FetchCommands
impl From<GetResponseBody> for FetchCommands
Source§fn from(v: GetResponseBody) -> Self
fn from(v: GetResponseBody) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GetResponseBody
impl PartialEq for GetResponseBody
Source§impl Serialize for GetResponseBody
impl Serialize for GetResponseBody
Source§impl TryFrom<BrowserProtocolCommands> for GetResponseBody
impl TryFrom<BrowserProtocolCommands> for GetResponseBody
Source§type Error = BrowserProtocolCommands
type Error = BrowserProtocolCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BrowserProtocolCommands,
) -> Result<Self, <GetResponseBody as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <GetResponseBody as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<Command> for GetResponseBody
impl TryFrom<Command> for GetResponseBody
Source§impl TryFrom<FetchCommands> for GetResponseBody
impl TryFrom<FetchCommands> for GetResponseBody
Source§type Error = FetchCommands
type Error = FetchCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: FetchCommands,
) -> Result<Self, <GetResponseBody as TryFrom<FetchCommands>>::Error>
fn try_from( e: FetchCommands, ) -> Result<Self, <GetResponseBody as TryFrom<FetchCommands>>::Error>
Performs the conversion.
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