Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
method CookieMap.prototype.set
import { CookieMap } from "https://deno.land/std@0.174.0/http/cookie_map.ts";

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]