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

x/cav/cookie.ts

A server framework for Deno
Go to Latest
import * as cav from "https://deno.land/x/cav@0.2.3/cookie.ts";

Functions

Creates a new CookieJar instance for managing a Request's cookies.

Decodes a signed cookie. If no keys are provided, the fallback keys will be used. If the cookie can't be decoded, an error will be thrown.

Encodes a signed cookie.

Interfaces

Options for deleting a cookie from a CookieJar.

Interface for reading and updating the cookies for a Request. Supports cookie signing. Most operations are synchronous, with the exception of .setCookies().

Options for setting a cookie in a CookieJar.