Module

x/fresh/tests/deps.ts>puppeteer.Network.Request

The next-gen web framework.
Extremely Popular
Go to Latest
interface puppeteer.Network.Request
import { type puppeteer } from "https://dotland.deno.dev/x/fresh@1.0.2/tests/deps.ts";
const { Request } = puppeteer.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.