import { type Protocol } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.d.ts";
const { RequestInterceptedEvent } = Protocol.Network;
Details of an intercepted HTTP request, which must be either allowed, blocked, modified or mocked. Deprecated, use Fetch.requestPaused instead.
Properties
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.
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).
Details of the Authorization Challenge encountered. If this is set then continueInterceptedRequest must contain an authChallengeResponse.
Response error if intercepted at response stage or if redirect occurred while intercepting request.
Response code if intercepted at response stage or if redirect occurred while intercepting request or auth retry occurred.
Response headers if intercepted at the response stage or if redirect occurred while intercepting request or auth retry occurred.