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

x/deno_nest/src/interfaces/context.interface.ts>ICookies

Refer to nestjs to realize some common functions for Deno, support hono and oak
Latest
interface ICookies
import { type ICookies } from "https://deno.land/x/deno_nest@v3.15.1/src/interfaces/context.interface.ts";

Methods

getAll(): Promise<Record<string, string>>
get(name: string, options?: CookiesGetOptions): Promise<string | false | undefined>

Get a specific cookie value

has(name: string, options?: CookiesGetOptions): Promise<boolean>
set(
name: string,
value: string | null,
): Promise<ICookies>
delete(name: string, options?: CookiesSetDeleteOptions): ICookies