Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface default.Fetch.RequestPausedEvent
import { type default } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.d.ts";
const { RequestPausedEvent } = default.Fetch;

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.

Properties

requestId: RequestId

Each request the page makes will have a unique id.

The details of the request.

frameId: Page.FrameId

The id of the frame that initiated the request.

resourceType: Network.ResourceType

How the requested resource will be used.

optional
responseErrorReason: Network.ErrorReason

Response error if intercepted at response stage.

optional
responseStatusCode: integer

Response code if intercepted at response stage.

optional
responseStatusText: string

Response status text if intercepted at response stage.

optional
responseHeaders: HeaderEntry[]

Response headers if intercepted at the response stage.

optional
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.