Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface default.Network.SetCookieRequest
import { type default } from "https://deno.land/x/pptr@1.2.0/vendor/devtools-protocol/protocol.d.ts";
const { SetCookieRequest } = default.Network;

Properties

name: string

Cookie name.

value: string

Cookie value.

optional
url: string

The request-URI to associate with the setting of the cookie. This value can affect the default domain and path values of the created cookie.

optional
domain: string

Cookie domain.

optional
path: string

Cookie path.

optional
secure: boolean

True if cookie is secure.

optional
httpOnly: boolean

True if cookie is http-only.

optional
sameSite: CookieSameSite

Cookie SameSite type.

optional
expires: TimeSinceEpoch

Cookie expiration date, session cookie if not set

optional
priority: CookiePriority

Cookie Priority type.