std/http/cookie.ts

Deno standard library
Go to Latest
interface Cookie
import { type Cookie } from "https://deno.land/std@0.114.0/http/cookie.ts?s=Cookie";

Properties

name: string[src]

Name of the cookie.

value: string[src]

Value of the cookie.

optional
expires: Date
[src]

Expiration date of the cookie.

optional
maxAge: number
[src]

Max-Age of the Cookie. Max-Age must be an integer superior or equal to 0.

optional
domain: string
[src]

Specifies those hosts to which the cookie will be sent.

optional
path: string
[src]

Indicates a URL path that must exist in the request.

optional
secure: boolean
[src]

Indicates if the cookie is made using SSL & HTTPS.

optional
httpOnly: boolean
[src]

Indicates that cookie is not accessible via JavaScript.

optional
sameSite: "Strict" | "Lax" | "None"
[src]

Allows servers to assert that a cookie ought not to be sent along with cross-site requests.

optional
unparsed: string[]
[src]

Additional key value pairs with the form "key=value"