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.

21 lines (20 loc) 604 B
import fsSystem from 'fs'; import { Socket } from 'net'; export declare const netAdaptRequestResponse: (socket: Socket, callback: (req: any, res: any) => void) => void; export declare const netBody: (req: any) => Promise<any>; export declare const netFiles: (req: any, options: { limit: number; tempFileDir: string; removeTempFile: { remove: boolean; ms: number; }; }) => Promise<{ body: any; files: any; }>; export declare const netPipeStream: ({ req, socket, filePath }: { req: any; socket: any; filePath: string; }) => Promise<fsSystem.ReadStream>;