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

x/deno_nest/modules/hono/src/cookies.ts>NestCookies

Refer to nestjs to realize some common functions for Deno, support hono and oak
Latest
class NestCookies
implements ICookies
import { NestCookies } from "https://deno.land/x/deno_nest@v3.15.1/modules/hono/src/cookies.ts";

Constructors

new
NestCookies(context: HonoContext, keys?: string[])

Methods

private
getSignedSecret(options?: CookiesGetOptions): string | false | undefined
delete(name: string, options?: CookiesSetDeleteOptions): ICookies
get(name: string, options?: CookiesGetOptions): Promise<string | false | undefined>
getAll(): Promise<Record<string, string>>
has(name: string, options?: CookiesGetOptions): Promise<boolean>
set(
name: string,
value: string,
): Promise<ICookies>