Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pptr/mod.ts>Protocol.Network.Cookie

Headless Chrome Deno API
Latest
interface Protocol.Network.Cookie
import { type Protocol } from "https://deno.land/x/pptr@1.2.0/mod.ts";
const { Cookie } = Protocol.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