Struct cdp::network::RequestInterceptedEvent
[−]
[src]
pub struct RequestInterceptedEvent<'a> { pub interception_id: InterceptionId<'a>, pub request: Request<'a>, pub resource_type: ResourceType, pub is_navigation_request: bool, pub redirect_headers: Option<Headers>, pub redirect_status_code: Option<i32>, pub redirect_url: Option<Cow<'a, str>>, pub auth_challenge: Option<AuthChallenge<'a>>, }
[Experimental] Details of an intercepted HTTP request, which must be either allowed, blocked, modified or mocked.
Event Network.requestIntercepted
Domain Module: cdp::network
Event Struct: cdp::network::RequestInterceptedEvent
Fields
interception_id: InterceptionId<'a>
Each request the page makes will have a unique id, however if any redirects are encountered while processing that fetch, they will be reported with the same id as the original fetch. Likewise if HTTP authentication is needed then the same fetch id will be used.
request: Request<'a>
resource_type: ResourceType
How the requested resource will be used.
Whether this is a navigation request, which can abort the navigation completely.
redirect_headers: Option<Headers>
HTTP response headers, only sent if a redirect was intercepted.
redirect_status_code: Option<i32>
HTTP response code, only sent if a redirect was intercepted.
redirect_url: Option<Cow<'a, str>>
Redirect location, only sent if a redirect was intercepted.
auth_challenge: Option<AuthChallenge<'a>>
Details of the Authorization Challenge encountered. If this is set then continueInterceptedRequest must contain an authChallengeResponse.
Trait Implementations
impl<'a> Clone for RequestInterceptedEvent<'a>
[src]
fn clone(&self) -> RequestInterceptedEvent<'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 RequestInterceptedEvent<'a>
[src]
impl<'a> PartialEq for RequestInterceptedEvent<'a>
[src]
fn eq(&self, __arg_0: &RequestInterceptedEvent<'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: &RequestInterceptedEvent<'a>) -> bool
[src]
This method tests for !=
.
impl<'a> CdpEvent for RequestInterceptedEvent<'a>
[src]
const EVENT_NAME: &'static str
EVENT_NAME: &'static str = "Network.requestIntercepted"
impl<'a> SerializeCdpEvent for RequestInterceptedEvent<'a>
[src]
fn event_name(&self) -> &str
[src]
fn serialize_event_params<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
S: Serializer,
impl<'de, 'a> DeserializeCdpEvent<'de> for RequestInterceptedEvent<'a>
[src]
fn deserialize_event<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>,