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

Cookie object

Properties

name: string

Cookie name.

value: string

Cookie value.

domain: string

Cookie domain.

path: string

Cookie path.

expires: number

Cookie expiration date as the number of seconds since the UNIX epoch.

size: integer

Cookie size.

httpOnly: boolean

True if cookie is http-only.

secure: boolean

True if cookie is secure.

session: boolean

True in case of session cookie.

optional
sameSite: CookieSameSite

Cookie SameSite type.

priority: CookiePriority

Cookie Priority

sameParty: boolean

True if cookie is SameParty.

sourceScheme: CookieSourceScheme

Cookie source scheme type.

sourcePort: integer

Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. This is a temporary ability and it will be removed in the future.

optional
partitionKey: string

Cookie partition key. The site of the top-level URL the browser was visiting at the start of the request to the endpoint that set the cookie.

optional
partitionKeyOpaque: boolean

True if cookie partition key is opaque.