next
Version:
The React Framework
11 lines (10 loc) • 562 B
TypeScript
import type { NodeHeaders } from './types';
export declare function streamToIterator<T>(readable: ReadableStream<T>): AsyncIterableIterator<T>;
export declare function notImplemented(name: string, method: string): any;
export declare function fromNodeHeaders(object: NodeHeaders): Headers;
export declare function toNodeHeaders(headers?: Headers): NodeHeaders;
export declare function splitCookiesString(cookiesString: string): string[];
/**
* Validate the correctness of a user-provided URL.
*/
export declare function validateURL(url: string | URL): string;