utils.d.ts 387 B

12345678
  1. import type { NodeHeaders } from './types';
  2. export declare function fromNodeHeaders(object: NodeHeaders): Headers;
  3. export declare function splitCookiesString(cookiesString: string): string[];
  4. export declare function toNodeHeaders(headers?: Headers): NodeHeaders;
  5. /**
  6. * Validate the correctness of a user-provided URL.
  7. */
  8. export declare function validateURL(url: string | URL): string;