Skip to main content
Module

x/another_cookiejar/mod.ts>Cookie

https://deno.land/x/another_cookiejar
Go to Latest
class Cookie
import { Cookie } from "https://deno.land/x/another_cookiejar@v4.1.4/mod.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 | Request | URL)
isValid(): boolean
setDomain(url: string | Request | URL)
setExpires(exp: Date | number)
setPath(url: string | Request | URL)

Static Properties

cookiesCreated: number

Static Methods

from(cookieStr: string)