Class RequestIntercepted
java.lang.Object
org.openqa.selenium.devtools.v85.network.model.RequestIntercepted
Deprecated.
Details of an intercepted HTTP request, which must be either allowed, blocked, modified or
mocked.
Deprecated, use Fetch.requestPaused instead.
-
Constructor Summary
ConstructorDescriptionRequestIntercepted
(InterceptionId interceptionId, Request request, FrameId frameId, ResourceType resourceType, Boolean isNavigationRequest, Optional<Boolean> isDownload, Optional<String> redirectUrl, Optional<AuthChallenge> authChallenge, Optional<ErrorReason> responseErrorReason, Optional<Integer> responseStatusCode, Optional<Headers> responseHeaders, Optional<RequestId> requestId) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Details of the Authorization Challenge encountered.Deprecated.The id of the frame that initiated the request.Deprecated.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.Deprecated.Set if the request is a navigation that will result in a download.Deprecated.Whether this is a navigation request, which can abort the navigation completely.Deprecated.Redirect location, only sent if a redirect was intercepted.Deprecated.Deprecated.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.Deprecated.How the requested resource will be used.Deprecated.Response error if intercepted at response stage or if redirect occurred while intercepting request.Deprecated.Response headers if intercepted at the response stage or if redirect occurred while intercepting request or auth retry occurred.Deprecated.Response code if intercepted at response stage or if redirect occurred while intercepting request or auth retry occurred.
-
Constructor Details
-
RequestIntercepted
public RequestIntercepted(InterceptionId interceptionId, Request request, FrameId frameId, ResourceType resourceType, Boolean isNavigationRequest, Optional<Boolean> isDownload, Optional<String> redirectUrl, Optional<AuthChallenge> authChallenge, Optional<ErrorReason> responseErrorReason, Optional<Integer> responseStatusCode, Optional<Headers> responseHeaders, Optional<RequestId> requestId) Deprecated.
-
-
Method Details
-
getInterceptionId
Deprecated.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. -
getRequest
Deprecated. -
getFrameId
Deprecated.The id of the frame that initiated the request. -
getResourceType
Deprecated.How the requested resource will be used. -
getIsDownload
Deprecated.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). -
getRedirectUrl
Deprecated.Redirect location, only sent if a redirect was intercepted. -
getAuthChallenge
Deprecated.Details of the Authorization Challenge encountered. If this is set then continueInterceptedRequest must contain an authChallengeResponse. -
getResponseErrorReason
Deprecated.Response error if intercepted at response stage or if redirect occurred while intercepting request. -
getResponseStatusCode
Deprecated.Response code if intercepted at response stage or if redirect occurred while intercepting request or auth retry occurred. -
getResponseHeaders
Deprecated.Response headers if intercepted at the response stage or if redirect occurred while intercepting request or auth retry occurred. -
getRequestId
Deprecated.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.
-