Struct chromiumoxide_cdp::cdp::browser_protocol::fetch::FulfillRequestParams [−][src]
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.
response_phrase: Option<String>
A textual representation of responseCode. If absent, a standard phrase matching responseCode is used.
Implementations
Trait Implementations
type Response = FulfillRequestReturns
type Response = FulfillRequestReturns
The type of the response this request triggers on the chromium server
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
The whole string identifier for this method like: DOM.removeNode
The name of the domain this method belongs to: DOM
The standalone identifier of the method inside the domain: removeNode
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for FulfillRequestParams
impl Send for FulfillRequestParams
impl Sync for FulfillRequestParams
impl Unpin for FulfillRequestParams
impl UnwindSafe for FulfillRequestParams
Blanket Implementations
Mutably borrows from an owned value. Read more