deno.land / x / deno@v1.28.2 / cli / bench / testdata / npm / hono / dist / utils / cookie.d.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
export declare type Cookie = Record<string, string>;export declare type CookieOptions = { domain?: string; expires?: Date; httpOnly?: boolean; maxAge?: number; path?: string; secure?: boolean; signed?: boolean; sameSite?: 'Strict' | 'Lax' | 'None';};export declare const parse: (cookie: string) => Cookie;export declare const serialize: (name: string, value: string, opt?: CookieOptions) => string;
deno

Version Info

Tagged at
2 years ago