mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
2.4 KiB
2.4 KiB
Home > puppeteer > Protocol > Network > RequestWillBeSentEvent
Protocol.Network.RequestWillBeSentEvent interface
Fired when page is about to send HTTP request.
Signature:
export interface RequestWillBeSentEvent
Properties
| Property | Type | Description |
|---|---|---|
| documentURL | string | URL of the document this request is loaded for. |
| frameId | Page.FrameId | Frame identifier. |
| hasUserGesture | boolean | Whether the request is initiated by a user gesture. Defaults to false. |
| initiator | Initiator | Request initiator. |
| loaderId | LoaderId | Loader identifier. Empty string if the request is fetched from worker. |
| redirectResponse | Response | Redirect response data. |
| request | Request | Request data. |
| requestId | RequestId | Request identifier. |
| timestamp | MonotonicTime | Timestamp. |
| type | ResourceType | Type of this resource. |
| wallTime | TimeSinceEpoch | Timestamp. |