pub struct FulfillRequestParams {
pub requestId: RequestId,
pub responseCode: i64,
pub responseHeaders: Option<Vec<HeaderEntry>>,
pub binaryResponseHeaders: Option<String>,
pub body: Option<String>,
pub responsePhrase: Option<String>,
}Expand description
Provides response to the request.
Fields§
§requestId: RequestIdAn id the client received in requestPaused event.
responseCode: i64An HTTP response code.
responseHeaders: Option<Vec<HeaderEntry>>Response headers.
binaryResponseHeaders: Option<String>Alternative way of specifying response headers as a \0-separated series of name: value pairs. Prefer the above method unless you need to represent some non-UTF8 values that can’t be transmitted over the protocol as text. (Encoded as a base64 string when passed over JSON)
body: Option<String>A response body. If absent, original response body will be used if the request is intercepted at the response stage and empty body will be used if the request is intercepted at the request stage. (Encoded as a base64 string when passed over JSON)
responsePhrase: Option<String>A textual representation of responseCode. If absent, a standard phrase matching responseCode is used.
Implementations§
Trait Implementations§
Source§impl CdpCommand for FulfillRequestParams
impl CdpCommand for FulfillRequestParams
Source§impl Clone for FulfillRequestParams
impl Clone for FulfillRequestParams
Source§fn clone(&self) -> FulfillRequestParams
fn clone(&self) -> FulfillRequestParams
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 FulfillRequestParams
impl Debug for FulfillRequestParams
Source§impl Default for FulfillRequestParams
impl Default for FulfillRequestParams
Source§fn default() -> FulfillRequestParams
fn default() -> FulfillRequestParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FulfillRequestParams
impl<'de> Deserialize<'de> for FulfillRequestParams
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
Auto Trait Implementations§
impl Freeze for FulfillRequestParams
impl RefUnwindSafe for FulfillRequestParams
impl Send for FulfillRequestParams
impl Sync for FulfillRequestParams
impl Unpin for FulfillRequestParams
impl UnsafeUnpin for FulfillRequestParams
impl UnwindSafe for FulfillRequestParams
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