urllib
Version:
Help in opening URLs (mostly HTTP) in a complex world — basic and digest authentication, redirections, timeout and more. Base undici API.
12 lines (11 loc) • 816 B
TypeScript
import type { IncomingHttpHeaders } from './IncomingHttpHeaders.js';
import type { FixJSONCtlChars } from './Request.js';
import type { SocketInfo } from './Response.js';
export declare function parseJSON(data: string, fixJSONCtlChars?: FixJSONCtlChars): unknown;
export declare function digestAuthHeader(method: string, uri: string, wwwAuthenticate: string, userpass: string): string;
export declare function globalId(category: string): number;
export declare function performanceTime(startTime: number, now?: number): number;
export declare function isReadable(stream: any): boolean;
export declare function updateSocketInfo(socketInfo: SocketInfo, internalOpaque: any, err?: any): void;
export declare function convertHeader(headers: Headers): IncomingHttpHeaders;
export declare function patchForNode16(): void;