RequestInterceptedEvent class

Constructors

RequestInterceptedEvent({required InterceptionId interceptionId, required RequestData request, required FrameId frameId, required ResourceType resourceType, required bool isNavigationRequest, bool? isDownload, String? redirectUrl, AuthChallenge? authChallenge, ErrorReason? responseErrorReason, int? responseStatusCode, Headers? responseHeaders, RequestId? requestId})
RequestInterceptedEvent.fromJson(Map<String, dynamic> json)
factory

Properties

authChallenge AuthChallenge?
Details of the Authorization Challenge encountered. If this is set then continueInterceptedRequest must contain an authChallengeResponse.
final
frameId FrameId
The id of the frame that initiated the request.
final
hashCode int
The hash code for this object.
no setterinherited
interceptionId InterceptionId
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.
final
isDownload bool?
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).
final
isNavigationRequest bool
Whether this is a navigation request, which can abort the navigation completely.
final
redirectUrl String?
Redirect location, only sent if a redirect was intercepted.
final
request RequestData
final
requestId RequestId?
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.
final
resourceType ResourceType
How the requested resource will be used.
final
responseErrorReason ErrorReason?
Response error if intercepted at response stage or if redirect occurred while intercepting request.
final
responseHeaders Headers?
Response headers if intercepted at the response stage or if redirect occurred while intercepting request or auth retry occurred.
final
responseStatusCode int?
Response code if intercepted at response stage or if redirect occurred while intercepting request or auth retry occurred.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited