Skip to main content
Module

x/astral/bindings/celestial.ts>Network_requestIntercepted

A high-level puppeteer/playwright-like library for Deno
Go to Latest
interface Network_requestIntercepted
import { type Network_requestIntercepted } from "https://deno.land/x/astral@0.3.1/bindings/celestial.ts";

Properties

interceptionId: Network_InterceptionId

Each request the page makes will have a unique id, however if any redirects are encountered while processing that fetch, they will be reported with the same id as the original fetch. Likewise if HTTP authentication is needed then the same fetch id will be used.

frameId: Page_FrameId

The id of the frame that initiated the request.

resourceType: Network_ResourceType

How the requested resource will be used.

isNavigationRequest: boolean

Whether this is a navigation request, which can abort the navigation completely.

optional
isDownload: boolean

Set if the request is a navigation that will result in a download. Only present after response is received from the server (i.e. HeadersReceived stage).

optional
redirectUrl: string

Redirect location, only sent if a redirect was intercepted.

optional
authChallenge: Network_AuthChallenge

Details of the Authorization Challenge encountered. If this is set then continueInterceptedRequest must contain an authChallengeResponse.

optional
responseErrorReason: Network_ErrorReason

Response error if intercepted at response stage or if redirect occurred while intercepting request.

optional
responseStatusCode: number

Response code if intercepted at response stage or if redirect occurred while intercepting request or auth retry occurred.

optional
responseHeaders: Network_Headers

Response headers if intercepted at the response stage or if redirect occurred while intercepting request or auth retry occurred.

optional
requestId: Network_RequestId

If the intercepted request had a corresponding requestWillBeSent event fired for it, then this requestId will be the same as the requestId present in the requestWillBeSent event.