Struct cdp::network::ContinueInterceptedRequestCommand
[−]
[src]
pub struct ContinueInterceptedRequestCommand<'a> { pub interception_id: InterceptionId<'a>, pub error_reason: Option<ErrorReason>, pub raw_response: Option<Cow<'a, str>>, pub url: Option<Cow<'a, str>>, pub method: Option<Cow<'a, str>>, pub post_data: Option<Cow<'a, str>>, pub headers: Option<Headers>, pub auth_challenge_response: Option<AuthChallengeResponse<'a>>, }
[Experimental] 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.
Command Network.continueInterceptedRequest
Domain Module: cdp::network
Command Struct: cdp::network::ContinueInterceptedRequestCommand
Response Struct: cdp::network::ContinueInterceptedRequestResponse
Fields
interception_id: InterceptionId<'a>
error_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<Cow<'a, 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.
url: Option<Cow<'a, 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.
method: Option<Cow<'a, str>>
If set this allows the request method to be overridden. Must not be set in response to an authChallenge.
post_data: Option<Cow<'a, str>>
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<'a>>
Response to a requestIntercepted with an authChallenge. Must not be set otherwise.
Trait Implementations
impl<'a> Clone for ContinueInterceptedRequestCommand<'a>
[src]
fn clone(&self) -> ContinueInterceptedRequestCommand<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> Debug for ContinueInterceptedRequestCommand<'a>
[src]
impl<'a> PartialEq for ContinueInterceptedRequestCommand<'a>
[src]
fn eq(&self, __arg_0: &ContinueInterceptedRequestCommand<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ContinueInterceptedRequestCommand<'a>) -> bool
[src]
This method tests for !=
.
impl<'a> CdpCommand for ContinueInterceptedRequestCommand<'a>
[src]
const COMMAND_NAME: &'static str
COMMAND_NAME: &'static str = "Network.continueInterceptedRequest"
impl<'a> SerializeCdpCommand for ContinueInterceptedRequestCommand<'a>
[src]
fn command_name(&self) -> &str
[src]
fn serialize_command_params<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
S: Serializer,
impl<'de, 'a> DeserializeCdpCommand<'de> for ContinueInterceptedRequestCommand<'a>
[src]
fn deserialize_command<D>(
name: &str,
params: D
) -> Result<Result<Self, D::Error>, D> where
D: Deserializer<'de>,
[src]
name: &str,
params: D
) -> Result<Result<Self, D::Error>, D> where
D: Deserializer<'de>,