puppeteer/new-docs/puppeteer.protocol.fetch.requestpausedevent.md
2020-07-13 14:01:35 +01:00

2.5 KiB

Home > puppeteer > Protocol > Fetch > RequestPausedEvent

Protocol.Fetch.RequestPausedEvent interface

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.

Signature:

export interface RequestPausedEvent 

Properties

Property Type Description
frameId Page.FrameId The id of the frame that initiated the request.
networkId RequestId 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.
request Network.Request The details of the request.
requestId RequestId Each request the page makes will have a unique id.
resourceType Network.ResourceType How the requested resource will be used.
responseErrorReason Network.ErrorReason Response error if intercepted at response stage.
responseHeaders HeaderEntry[] Response headers if intercepted at the response stage.
responseStatusCode integer Response code if intercepted at response stage.