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

x/another_cookiejar/Cookie.ts>Cookie

https://deno.land/x/another_cookiejar
Go to Latest
class Cookie
import { Cookie } from "https://deno.land/x/another_cookiejar@v2.2.1/Cookie.ts";

Constructors

new
Cookie(options?: CookieOptions)

Properties

creationDate
creationIndex: number
domain: string | undefined
expires: number | undefined

in milliseconds

httpOnly: boolean | undefined
maxAge: number | undefined

in seconds

name: string | undefined
path: string | undefined
sameSite:
| "Lax"
| "Strict"
| "None"
| undefined
secure: boolean | undefined
value: string | undefined

Methods

canSendTo(url: string, redirectedTo?)
isValid(): boolean
setDomain(url: string | Request | URL)
setExpires(exp: Date | number)

Static Properties

cookiesCreated: number

Static Methods

from(cookieStr: string)