Skip to main content
Module

x/shed/signed-cookie-store.ts>CookieStore

All Worker Tools under a single roof
Latest
interface CookieStore
implements EventTarget
Re-export
import { type CookieStore } from "https://deno.land/x/shed@v0.1.0-pre.10/signed-cookie-store.ts";

A verbatim TypeScript translation of the interfaces defined in the WICG Cookie Store API working draft.

Methods

get(name?: string): Promise<CookieListItem | null>
get(options?: CookieStoreGetOptions): Promise<CookieListItem | null>
getAll(name?: string): Promise<CookieList>
getAll(options?: CookieStoreGetOptions): Promise<CookieList>
set(name: string, value: string): Promise<void>
set(options: CookieInit): Promise<void>
delete(name: string): Promise<void>
delete(options: CookieStoreDeleteOptions): Promise<void>