Skip to main content
Module

x/oak_sessions/deps.ts>Cookies#set

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

Set a cookie in the response.

If there are keys set in the application, cookies will be automatically signed, unless overridden by the set options. Cookies can be deleted by setting the value to null.

Parameters

name: string
value: string | null
optional
options: CookiesSetDeleteOptions = [UNSUPPORTED]

Returns

Promise<this>