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

x/oak_nest/test_deps.ts>OakCookie#set

Refer to nestjs to realize some common functions for Deno
Go to Latest
method OakCookie.prototype.set
import { OakCookie } from "https://deno.land/x/oak_nest@v2.0.1/test_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>