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

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

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

Set a named cookie in the response. The optional CookieMapSetDeleteOptions are applied to the cookie being set.

Parameters

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