wexen
Version:
12 lines (11 loc) • 370 B
TypeScript
import { HttpHeaders, HttpMethod, None } from '../../index.ts';
import { UrlWithParsedQuery } from 'url';
export type HttpRequest = {
method: HttpMethod;
remoteAddress?: string | None;
headers: HttpHeaders;
url: UrlWithParsedQuery;
query(): Record<string, string | string[] | undefined>;
text(): Promise<string>;
json(): Promise<unknown>;
};