Skip to main content
Module

std/http/mod.ts>CookieMap#set

Deno standard library
Go to Latest
method CookieMap.prototype.set
import { CookieMap } from "https://deno.land/std@0.181.0/http/mod.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]