pub struct FulfillRequestParams {
pub request_id: RequestId,
pub response_code: i32,
pub response_headers: Option<Vec<HeaderEntry>>,
pub binary_response_headers: Option<String>,
pub body: Option<String>,
pub response_phrase: Option<String>,
}Expand description
Parameters for Fetch.fulfillRequest.
Fields§
§request_id: RequestIdAn id the client received in requestPaused event.
response_code: i32An HTTP response code.
response_headers: Option<Vec<HeaderEntry>>Response headers.
binary_response_headers: Option<String>Alternative way of specifying response headers as a \0-separated series of name: value pairs.
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)
response_phrase: Option<String>A textual representation of responseCode. If absent, a standard phrase matching responseCode is used.
Trait Implementations§
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
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