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.

13 lines (12 loc) 431 B
import { IncomingMessage, ServerResponse } from "http"; import { Stream } from "stream"; export declare const normalizeRequestBody: ({ contentType, payload, }: { contentType: string | null; payload: any; }) => Promise<any>; export declare const pipeStream: ({ req, res, filePath, isUwebSocket, }: { req: IncomingMessage; res: ServerResponse; filePath: string; isUwebSocket?: boolean; }) => Promise<Stream>;