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

Fired when page is about to send HTTP request.

Properties

requestId: RequestId

Request identifier.

loaderId: LoaderId

Loader identifier. Empty string if the request is fetched from worker.

documentURL: string

URL of the document this request is loaded for.

request: Request

Request data.

timestamp: MonotonicTime

Timestamp.

wallTime: TimeSinceEpoch

Timestamp.

initiator: Initiator

Request initiator.

redirectHasExtraInfo: boolean

In the case that redirectResponse is populated, this flag indicates whether requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be or were emitted for the request which was just redirected.

optional
redirectResponse: Response

Redirect response data.

optional
type: ResourceType

Type of this resource.

optional
frameId: Page.FrameId

Frame identifier.

optional
hasUserGesture: boolean

Whether the request is initiated by a user gesture. Defaults to false.