Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface default.Network.Request
import { type default } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.d.ts";
const { Request } = default.Network;

HTTP request data.

Properties

url: string

Request URL (without fragment).

optional
urlFragment: string

Fragment of the requested URL starting with hash, if present.

method: string

HTTP request method.

headers: Headers

HTTP request headers.

optional
postData: string

HTTP POST request data.

optional
hasPostData: boolean

True when the request has POST data. Note that postData might still be omitted when this flag is true when the data is too long.

optional
postDataEntries: PostDataEntry[]

Request body elements. This will be converted from base64 to binary

optional
mixedContentType: Security.MixedContentType

The mixed content type of the request.

initialPriority: ResourcePriority

Priority of the resource request at the time request is sent.

referrerPolicy: (
| "unsafe-url"
| "no-referrer-when-downgrade"
| "no-referrer"
| "origin"
| "origin-when-cross-origin"
| "same-origin"
| "strict-origin"
| "strict-origin-when-cross-origin"
)

The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/ (RequestReferrerPolicy enum)

optional
isLinkPreload: boolean

Whether is loaded via link preload.

optional
trustTokenParams: TrustTokenParams

Set for requests when the TrustToken API is used. Contains the parameters passed by the developer (e.g. via "fetch") as understood by the backend.

optional
isSameSite: boolean

True if this resource request is considered to be the 'same site' as the request correspondinfg to the main frame.