UNPKG

@sufalctl/honeycomb

Version:

**Honeycomb** is a clean and minimal web framework inspired by Express.js — built entirely from scratch using **raw TypeScript** with **no external libraries**.

20 lines (19 loc) 613 B
/// <reference types="node" /> import { IncomingMessage, ServerResponse } from "node:http"; export declare class Req extends IncomingMessage { params: any; query: any; body: any; } export declare class Res extends ServerResponse { status(code: number): this; json(body: Object): void; send(body: string): void; cookie(tokenName: string, token: string, { HttpOnly, MaxAge, Secure, SameSite }: { HttpOnly?: boolean; MaxAge?: number; Secure?: boolean; SameSite?: string; }): this; render(view: string, data?: Record<string, any>): Promise<void>; }