tezx
Version:
TezX is a high-performance, lightweight JavaScript framework designed for speed, scalability, and flexibility. It enables efficient routing, middleware management, and static file serving with minimal configuration. Fully compatible with Node.js, Deno, an
12 lines (11 loc) • 448 B
TypeScript
import { IncomingMessage } from "node:http";
/**
* Convert Node.js IncomingMessage to a standard Web Fetch API Request with full support:
* - Absolute URL resolution
* - Streaming body (duplex)
* - AbortSignal linked to client disconnect
*
* @param {IncomingMessage} req Node.js HTTP request object
* @returns {Request} Web Fetch API Request instance
*/
export declare function toWebRequest(req: IncomingMessage, method?: string): Request;