Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
interface Protocol.Network.RequestWillBeSentEvent
import { type Protocol } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.js";
const { RequestWillBeSentEvent } = Protocol.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.