Skip to main content
Module

x/oak_sessions/deps.ts>Cookies#set

Session middleware for Oak
Latest
method Cookies.prototype.set
import { Cookies } from "https://deno.land/x/oak_sessions@v4.1.11/deps.ts";

Set a cookie in the response headers.

If there was a keyring set, cookies will be automatically signed, unless overridden by the passed options. Cookies can be deleted by setting the value to null.

Parameters

key: string
value: string | null
optional
options: SecureCookieMapSetDeleteOptions = [UNSUPPORTED]

Returns

Promise<this>