hono-sess
Version:
A Simple Session Middleware for Hono
38 lines • 1.26 kB
TypeScript
/*!
* Connect - session - Cookie
* Copyright(c) 2010 Sencha Inc.
* Copyright(c) 2011 TJ Holowaychuk
* Copyright(c) 2025 Mehmet Güleryüz
* MIT Licensed
*/
import type { CookieOptions } from './types';
export declare class Cookie implements CookieOptions {
path?: string;
private _expires;
originalMaxAge: number | null;
httpOnly?: boolean;
partitioned?: boolean;
secure?: boolean | 'auto';
domain?: string;
sameSite?: CookieOptions['sameSite'];
priority?: CookieOptions['priority'];
constructor(options?: CookieOptions);
get expires(): Date | null | undefined;
set expires(date: Date | null);
set maxAge(ms: number | undefined | Date);
get maxAge(): number | undefined;
get data(): {
originalMaxAge: number | null;
partitioned: boolean | undefined;
expires: Date | undefined;
secure: boolean | undefined;
httpOnly: boolean | undefined;
domain: string | undefined;
path: string | undefined;
sameSite: boolean | "lax" | "strict" | "none" | undefined;
priority: "low" | "medium" | "high" | undefined;
};
serialize(name: string, val: string): string;
toJSON(): CookieOptions;
}
//# sourceMappingURL=cookie.d.ts.map