Skip to main content
Module

x/oak_commons/cookie_map.ts>CookieMap#set

A set of APIs for handling HTTP and HTTPS requests with Deno 🐿️ 🦕
Go to Latest
method CookieMap.prototype.set
import { CookieMap } from "https://deno.land/x/oak_commons@0.6.0/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]