Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/hex/src/fw/service/deps.ts>oak.Cookies#set

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
method oak.Cookies.prototype.set
import { oak } from "https://deno.land/x/hex@0.6.5/src/fw/service/deps.ts";
const { Cookies } = oak;

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>