pub struct ContinueInterceptedRequest {
pub interception_id: InterceptionId,
pub error_reason: Option<ErrorReason>,
pub raw_response: Option<Vec<u8>>,
pub url: Option<String>,
pub method: Option<String>,
pub post_data: Option<String>,
pub headers: Option<Headers>,
pub auth_challenge_response: Option<AuthChallengeResponse>,
}Expand description
Response to Network.requestIntercepted which either modifies the request to continue with any modifications, or blocks it, or completes it with the provided response bytes. If a network fetch occurs as a result which encounters a redirect an additional Network.requestIntercepted event will be sent with the same InterceptionId. Deprecated, use Fetch.continueRequest, Fetch.fulfillRequest and Fetch.failRequest instead.
Fields§
§interception_id: InterceptionIderror_reason: Option<ErrorReason>If set this causes the request to fail with the given reason. Passing Aborted for requests
marked with isNavigationRequest also cancels the navigation. Must not be set in response
to an authChallenge.
raw_response: Option<Vec<u8>>If set the requests completes using with the provided base64 encoded raw response, including HTTP status line and headers etc… Must not be set in response to an authChallenge.
url: Option<String>If set the request url will be modified in a way that’s not observable by page. Must not be set in response to an authChallenge.
method: Option<String>If set this allows the request method to be overridden. Must not be set in response to an authChallenge.
post_data: Option<String>If set this allows postData to be set. Must not be set in response to an authChallenge.
headers: Option<Headers>If set this allows the request headers to be changed. Must not be set in response to an authChallenge.
auth_challenge_response: Option<AuthChallengeResponse>Response to a requestIntercepted with an authChallenge. Must not be set otherwise.
Trait Implementations§
Source§impl Clone for ContinueInterceptedRequest
impl Clone for ContinueInterceptedRequest
Source§fn clone(&self) -> ContinueInterceptedRequest
fn clone(&self) -> ContinueInterceptedRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ContinueInterceptedRequest
impl Debug for ContinueInterceptedRequest
Source§impl<'de> Deserialize<'de> for ContinueInterceptedRequest
impl<'de> Deserialize<'de> for ContinueInterceptedRequest
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>,
Source§impl Method for ContinueInterceptedRequest
impl Method for ContinueInterceptedRequest
const NAME: &'static str = "Network.continueInterceptedRequest"
type ReturnObject = ContinueInterceptedRequestReturnObject
fn to_method_call(self, call_id: CallId) -> MethodCall<Self>where
Self: Sized,
Source§impl PartialEq for ContinueInterceptedRequest
impl PartialEq for ContinueInterceptedRequest
Source§fn eq(&self, other: &ContinueInterceptedRequest) -> bool
fn eq(&self, other: &ContinueInterceptedRequest) -> bool
self and other values to be equal, and is used by ==.