Struct chrome_remote_interface_model::network::RequestInterceptedEvent [−][src]
Network
and Debugger
and Runtime
and Security
and experimental
only.Details of an intercepted HTTP request, which must be either allowed, blocked, modified or mocked. Deprecated, use Fetch.requestPaused instead.
Implementations
impl RequestInterceptedEvent
[src]
pub fn builder() -> RequestInterceptedEventBuilder
[src]
pub fn interception_id(&self) -> &InterceptionId
[src]
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.
pub fn request(&self) -> &Request
[src]
pub fn frame_id(&self) -> &FrameId
[src]
The id of the frame that initiated the request.
pub fn resource_type(&self) -> &ResourceType
[src]
How the requested resource will be used.
pub fn is_navigation_request(&self) -> bool
[src]
Whether this is a navigation request, which can abort the navigation completely.
pub fn is_download(&self) -> Option<&bool>
[src]
Set if the request is a navigation that will result in a download. Only present after response is received from the server (i.e. HeadersReceived stage).
pub fn redirect_url(&self) -> Option<&String>
[src]
Redirect location, only sent if a redirect was intercepted.
pub fn auth_challenge(&self) -> Option<&JsonValue>
[src]
Details of the Authorization Challenge encountered. If this is set then continueInterceptedRequest must contain an authChallengeResponse.
pub fn response_error_reason(&self) -> Option<&ErrorReason>
[src]
Response error if intercepted at response stage or if redirect occurred while intercepting request.
pub fn response_status_code(&self) -> Option<&u32>
[src]
Response code if intercepted at response stage or if redirect occurred while intercepting request or auth retry occurred.
pub fn response_headers(&self) -> Option<&Headers>
[src]
Response headers if intercepted at the response stage or if redirect occurred while intercepting request or auth retry occurred.
pub fn request_id(&self) -> Option<&RequestId>
[src]
If the intercepted request had a corresponding requestWillBeSent event fired for it, then this requestId will be the same as the requestId present in the requestWillBeSent event.
Trait Implementations
impl Clone for RequestInterceptedEvent
[src]
fn clone(&self) -> RequestInterceptedEvent
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for RequestInterceptedEvent
[src]
impl<'de> Deserialize<'de> for RequestInterceptedEvent
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for RequestInterceptedEvent
[src]
Auto Trait Implementations
impl RefUnwindSafe for RequestInterceptedEvent
[src]
impl Send for RequestInterceptedEvent
[src]
impl Sync for RequestInterceptedEvent
[src]
impl Unpin for RequestInterceptedEvent
[src]
impl UnwindSafe for RequestInterceptedEvent
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,