You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
234 B

6 months ago
  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;