index.d.ts 266 B

1234567891011
  1. import type { IncomingMessage } from 'http';
  2. export interface ParsedURL {
  3. pathname: string;
  4. search: string;
  5. query: Record<string, string | string[]> | undefined;
  6. hash: string | undefined;
  7. raw: string;
  8. }
  9. export function parse(req: IncomingMessage): ParsedURL;