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

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

A file system based router for Deno.
Go to Latest
method http.CookieMap.prototype.set
import { http } from "https://deno.land/x/fsrouter@2.11.1/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]