UNPKG

tspace-spear

Version:

tspace-spear is a lightweight, high-performance API framework for Node.js that leverages the native HTTP server and supports uWebSockets.js (C++) for maximum speed and efficiency.

7 lines (6 loc) 286 B
import { IncomingMessage, ServerResponse } from "http"; import type { T } from "../types"; export declare const Response: (req: IncomingMessage, res: ServerResponse, { formatResponse, isUwebSocket }: { formatResponse?: Function | null; isUwebSocket?: boolean; }) => T.Response;