Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/superdeno/test/deps.ts>Oak.Cookies#set

Super-agent driven library for testing Deno HTTP servers.
Go to Latest
method Oak.Cookies.prototype.set
import { Oak } from "https://deno.land/x/superdeno@4.8.0/test/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>