pub struct ContinueInterceptedRequestParams<'a> { /* private fields */ }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.
Implementations§
Source§impl<'a> ContinueInterceptedRequestParams<'a>
impl<'a> ContinueInterceptedRequestParams<'a>
Sourcepub fn builder(
interception_id: impl Into<InterceptionId<'a>>,
) -> ContinueInterceptedRequestParamsBuilder<'a>
pub fn builder( interception_id: impl Into<InterceptionId<'a>>, ) -> ContinueInterceptedRequestParamsBuilder<'a>
Creates a builder for this type with the required parameters:
interception_id:
pub fn interception_id(&self) -> &InterceptionId<'a>
Sourcepub fn error_reason(&self) -> Option<&ErrorReason>
pub fn error_reason(&self) -> 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.
Sourcepub fn raw_response(&self) -> Option<&str>
pub fn raw_response(&self) -> Option<&str>
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. (Encoded as a base64 string when passed over JSON)
Sourcepub fn url(&self) -> Option<&str>
pub fn url(&self) -> Option<&str>
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.
Sourcepub fn method(&self) -> Option<&str>
pub fn method(&self) -> Option<&str>
If set this allows the request method to be overridden. Must not be set in response to an authChallenge.
Sourcepub fn post_data(&self) -> Option<&str>
pub fn post_data(&self) -> Option<&str>
If set this allows postData to be set. Must not be set in response to an authChallenge.
Sourcepub fn headers(&self) -> Option<&Headers>
pub fn headers(&self) -> Option<&Headers>
If set this allows the request headers to be changed. Must not be set in response to an authChallenge.
Sourcepub fn auth_challenge_response(&self) -> Option<&AuthChallengeResponse<'a>>
pub fn auth_challenge_response(&self) -> Option<&AuthChallengeResponse<'a>>
Response to a requestIntercepted with an authChallenge. Must not be set otherwise.
Trait Implementations§
Source§impl<'a> CdpCommand<'a> for ContinueInterceptedRequestParams<'a>
impl<'a> CdpCommand<'a> for ContinueInterceptedRequestParams<'a>
Source§impl<'a> Clone for ContinueInterceptedRequestParams<'a>
impl<'a> Clone for ContinueInterceptedRequestParams<'a>
Source§fn clone(&self) -> ContinueInterceptedRequestParams<'a>
fn clone(&self) -> ContinueInterceptedRequestParams<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more