Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/levo/src/deps.ts>server.Cookie

Server side rendering with The Elm Architecture in Deno
Latest
interface server.Cookie
import { type server } from "https://deno.land/x/levo@v0.0.27/src/deps.ts";
const { Cookie } = server;

Properties

name: string

Name of the cookie.

value: string

Value of the cookie.

optional
expires: Date

Expiration date of the cookie.

optional
maxAge: number

Max-Age of the Cookie. Must be integer superior to 0.

optional
domain: string

Specifies those hosts to which the cookie will be sent.

optional
path: string

Indicates a URL path that must exist in the request.

optional
secure: boolean

Indicates if the cookie is made using SSL & HTTPS.

optional
httpOnly: boolean

Indicates that cookie is not accessible via JavaScript. *

optional
sameSite: SameSite

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

optional
unparsed: string[]

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