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

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

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

Get the value of a cookie from the request.

If the cookie is signed, and the signature is invalid, the cookie will be set to be deleted in the the response. If the signature uses an "old" key, the cookie will be re-signed with the current key and be added to the response to be updated.

Parameters

name: string
optional
options: CookiesGetOptions = [UNSUPPORTED]

Returns

Promise<string | undefined>