pub struct FulfillRequest {
pub request_id: RequestId,
pub response_code: JsUInt,
pub response_headers: Option<Vec<HeaderEntry>>,
pub binary_response_headers: Option<Vec<u8>>,
pub body: Option<Vec<u8>>,
pub response_phrase: Option<String>,
}Expand description
Provides response to the request.
Fields§
§request_id: RequestIdAn id the client received in requestPaused event.
response_code: JsUIntAn HTTP response code.
response_headers: Option<Vec<HeaderEntry>>Response headers.
binary_response_headers: Option<Vec<u8>>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<Vec<u8>>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.
Trait Implementations§
Source§impl Clone for FulfillRequest
impl Clone for FulfillRequest
Source§fn clone(&self) -> FulfillRequest
fn clone(&self) -> FulfillRequest
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 FulfillRequest
impl Debug for FulfillRequest
Source§impl<'de> Deserialize<'de> for FulfillRequest
impl<'de> Deserialize<'de> for FulfillRequest
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 FulfillRequest
impl Method for FulfillRequest
const NAME: &'static str = "Fetch.fulfillRequest"
type ReturnObject = FulfillRequestReturnObject
fn to_method_call(self, call_id: CallId) -> MethodCall<Self>where
Self: Sized,
Source§impl PartialEq for FulfillRequest
impl PartialEq for FulfillRequest
Source§impl Serialize for FulfillRequest
impl Serialize for FulfillRequest
impl StructuralPartialEq for FulfillRequest
Auto Trait Implementations§
impl Freeze for FulfillRequest
impl RefUnwindSafe for FulfillRequest
impl Send for FulfillRequest
impl Sync for FulfillRequest
impl Unpin for FulfillRequest
impl UnsafeUnpin for FulfillRequest
impl UnwindSafe for FulfillRequest
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