Skip to main content
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.197.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]