UNPKG

f2e-server3

Version:

f2e-server 3.0

18 lines (17 loc) 651 B
import { IncomingMessage } from 'node:http'; import { HttpRequest, RecognizedString } from 'uWebSockets.js'; export declare class NativeRequest implements HttpRequest { request: IncomingMessage; location: URL; searchParams: URLSearchParams; constructor(req: IncomingMessage); getHeader(lowerCaseKey: RecognizedString): string; getParameter(index: number): string; getUrl(): string; getMethod(): string; getCaseSensitiveMethod(): string; getQuery(): string; getQuery(key: string): string | undefined; forEach(cb: (key: string, value: string) => void): void; setYield(_yield: boolean): HttpRequest; }