@d3vtool/kazejs
Version:
A flexible Node.js web framework built with TypeScript, focusing on dependency injection, routing, middleware, and schema validation. Supports dynamic routes, global middleware, static files, and customizable error handling for scalable apps.
18 lines (17 loc) • 589 B
TypeScript
import { KazeContext, KazeNextFunction } from "./kaze";
export interface CookieOptions {
path?: string;
domain?: string;
maxAge?: number;
secure?: boolean;
httpOnly?: boolean;
expires?: Date | string;
sameSite?: 'Strict' | 'Lax' | 'None';
}
export declare function createCookie(key: string, value: string, options: CookieOptions): string;
export declare class Cookie {
#private;
constructor(cookies: Record<string, string>);
get(key: string): Readonly<string>;
}
export declare function parseCookies(ctx: KazeContext, next: KazeNextFunction): void;