index.d.ts 234 B

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