-
public final class FetchEvent.RequestPausedEvent extends FetchEvent
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.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringrequestIdprivate final Requestrequestprivate final StringframeIdprivate final ResourceTyperesourceTypeprivate final ErrorReasonresponseErrorReasonprivate final IntegerresponseStatusCodeprivate final List<HeaderEntry>responseHeadersprivate final StringnetworkId
-
Constructor Summary
Constructors Constructor Description RequestPausedEvent(String requestId, Request request, String frameId, ResourceType resourceType, ErrorReason responseErrorReason, Integer responseStatusCode, List<HeaderEntry> responseHeaders, String networkId)
-
Method Summary
Modifier and Type Method Description final Stringcomponent1()final Requestcomponent2()final Stringcomponent3()final ResourceTypecomponent4()final ErrorReasoncomponent5()final Integercomponent6()final List<HeaderEntry>component7()final Stringcomponent8()final FetchEvent.RequestPausedEventcopy(String requestId, Request request, String frameId, ResourceType resourceType, ErrorReason responseErrorReason, Integer responseStatusCode, List<HeaderEntry> responseHeaders, String networkId)final StringgetRequestId()Each request the page makes will have a unique id. final RequestgetRequest()The details of the request. final StringgetFrameId()The id of the frame that initiated the request. final ResourceTypegetResourceType()How the requested resource will be used. final ErrorReasongetResponseErrorReason()Response error if intercepted at response stage. final IntegergetResponseStatusCode()Response code if intercepted at response stage. final List<HeaderEntry>getResponseHeaders()Response headers if intercepted at the response stage. final StringgetNetworkId()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. -
-
Constructor Detail
-
RequestPausedEvent
RequestPausedEvent(String requestId, Request request, String frameId, ResourceType resourceType, ErrorReason responseErrorReason, Integer responseStatusCode, List<HeaderEntry> responseHeaders, String networkId)
-
-
Method Detail
-
component1
final String component1()
-
component2
final Request component2()
-
component3
final String component3()
-
component4
final ResourceType component4()
-
component5
final ErrorReason component5()
-
component6
final Integer component6()
-
component7
final List<HeaderEntry> component7()
-
component8
final String component8()
-
copy
final FetchEvent.RequestPausedEvent copy(String requestId, Request request, String frameId, ResourceType resourceType, ErrorReason responseErrorReason, Integer responseStatusCode, List<HeaderEntry> responseHeaders, String networkId)
-
getRequestId
final String getRequestId()
Each request the page makes will have a unique id.
-
getRequest
final Request getRequest()
The details of the request.
-
getFrameId
final String getFrameId()
The id of the frame that initiated the request.
-
getResourceType
final ResourceType getResourceType()
How the requested resource will be used.
-
getResponseErrorReason
final ErrorReason getResponseErrorReason()
Response error if intercepted at response stage.
-
getResponseStatusCode
final Integer getResponseStatusCode()
Response code if intercepted at response stage.
-
getResponseHeaders
final List<HeaderEntry> getResponseHeaders()
Response headers if intercepted at the response stage.
-
getNetworkId
final String 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.
-
-
-
-