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

x/fsrouter/deps.ts>http.SecureCookieMap#set

A file system based router for Deno.
Go to Latest
method http.SecureCookieMap.prototype.set
import { http } from "https://deno.land/x/fsrouter@2.11.1/deps.ts";
const { SecureCookieMap } = http;

Set a cookie in the response headers.

If there was a keyring set, cookies will be automatically signed, unless overridden by the passed options. Cookies can be deleted by setting the value to null.

Parameters

key: string
value: string | null
optional
options: SecureCookieMapSetDeleteOptions = [UNSUPPORTED]

Returns

Promise<this>