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

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

Super-agent driven library for testing Deno HTTP servers.
Latest
method Oak.Cookies.prototype.set
import { Oak } from "https://deno.land/x/superdeno@4.9.0/test/deps.ts";
const { Cookies } = Oak;

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>