pub struct FulfillRequestParams {
pub request_id: RequestId,
pub response_code: i64,
pub response_headers: Option<Vec<HeaderEntry>>,
pub binary_response_headers: Option<Binary>,
pub body: Option<Binary>,
pub response_phrase: Option<String>,
}
Expand description
Provides response to the request. fulfillRequest
Fields§
§request_id: RequestId
An id the client received in requestPaused event.
response_code: i64
An HTTP response code.
response_headers: Option<Vec<HeaderEntry>>
Response headers.
binary_response_headers: Option<Binary>
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.
body: Option<Binary>
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.
response_phrase: Option<String>
A textual representation of responseCode. If absent, a standard phrase matching responseCode is used.
Implementations§
Source§impl FulfillRequestParams
impl FulfillRequestParams
pub fn builder() -> FulfillRequestParamsBuilder
Source§impl FulfillRequestParams
impl FulfillRequestParams
pub const IDENTIFIER: &'static str = "Fetch.fulfillRequest"
Trait Implementations§
Source§impl Clone for FulfillRequestParams
impl Clone for FulfillRequestParams
Source§fn clone(&self) -> FulfillRequestParams
fn clone(&self) -> FulfillRequestParams
Returns a copy 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 Command for FulfillRequestParams
impl Command for FulfillRequestParams
Source§impl Debug for FulfillRequestParams
impl Debug for FulfillRequestParams
Source§impl<'de> Deserialize<'de> for FulfillRequestParams
impl<'de> Deserialize<'de> for FulfillRequestParams
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FulfillRequestParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FulfillRequestParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Method for FulfillRequestParams
impl Method for FulfillRequestParams
Source§fn identifier(&self) -> Cow<'static, str>
fn identifier(&self) -> Cow<'static, str>
The whole string identifier for this method like:
DOM.removeNode
Source§fn domain_name(&self) -> Cow<'static, str>
fn domain_name(&self) -> Cow<'static, str>
The name of the domain this method belongs to:
DOM
Source§fn method_name(&self) -> Cow<'static, str>
fn method_name(&self) -> Cow<'static, str>
The standalone identifier of the method inside the domain:
removeNode
Source§impl MethodType for FulfillRequestParams
impl MethodType for FulfillRequestParams
Source§impl PartialEq for FulfillRequestParams
impl PartialEq for FulfillRequestParams
Source§impl Serialize for FulfillRequestParams
impl Serialize for FulfillRequestParams
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for FulfillRequestParams
Auto Trait Implementations§
impl Freeze for FulfillRequestParams
impl RefUnwindSafe for FulfillRequestParams
impl Send for FulfillRequestParams
impl Sync for FulfillRequestParams
impl Unpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more