Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface Protocol.Network.RequestWillBeSentEvent
import { type Protocol } from "https://deno.land/x/pptr@1.2.0/vendor/devtools-protocol/protocol.d.ts";
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.

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.