Class RequestPaused
java.lang.Object
org.openqa.selenium.devtools.v126.fetch.model.RequestPaused
Issued when the domain is enabled and the request URL matches the
specified filter. The request is paused until the client responds
with one of continueRequest, failRequest or fulfillRequest.
The stage of the request can be determined by presence of responseErrorReason
and responseStatusCode -- the request is at the response stage if either
of these fields is present and in the request stage otherwise.
Redirect responses and subsequent requests are reported similarly to regular
responses and requests. Redirect responses may be distinguished by the value
of `responseStatusCode` (which is one of 301, 302, 303, 307, 308) along with
presence of the `location` header. Requests resulting from a redirect will
have `redirectedRequestId` field set.
-
Constructor Summary
ConstructorsConstructorDescriptionRequestPaused
(RequestId requestId, Request request, FrameId frameId, ResourceType resourceType, Optional<ErrorReason> responseErrorReason, Optional<Integer> responseStatusCode, Optional<String> responseStatusText, Optional<List<HeaderEntry>> responseHeaders, Optional<RequestId> networkId, Optional<RequestId> redirectedRequestId) -
Method Summary
Modifier and TypeMethodDescriptionThe id of the frame that initiated the request.If the intercepted request had a corresponding Network.requestWillBeSent event fired for it, then this networkId will be the same as the requestId present in the requestWillBeSent event.If the request is due to a redirect response from the server, the id of the request that has caused the redirect.The details of the request.Each request the page makes will have a unique id.How the requested resource will be used.Response error if intercepted at response stage.Response headers if intercepted at the response stage.Response code if intercepted at response stage.Response status text if intercepted at response stage.
-
Constructor Details
-
RequestPaused
public RequestPaused(RequestId requestId, Request request, FrameId frameId, ResourceType resourceType, Optional<ErrorReason> responseErrorReason, Optional<Integer> responseStatusCode, Optional<String> responseStatusText, Optional<List<HeaderEntry>> responseHeaders, Optional<RequestId> networkId, Optional<RequestId> redirectedRequestId)
-
-
Method Details
-
getRequestId
Each request the page makes will have a unique id. -
getRequest
The details of the request. -
getFrameId
The id of the frame that initiated the request. -
getResourceType
How the requested resource will be used. -
getResponseErrorReason
Response error if intercepted at response stage. -
getResponseStatusCode
Response code if intercepted at response stage. -
getResponseStatusText
Response status text if intercepted at response stage. -
getResponseHeaders
Response headers if intercepted at the response stage. -
getNetworkId
If the intercepted request had a corresponding Network.requestWillBeSent event fired for it, then this networkId will be the same as the requestId present in the requestWillBeSent event. -
getRedirectedRequestId
If the request is due to a redirect response from the server, the id of the request that has caused the redirect.
-