UNPKG

urllib

Version:

Help in opening URLs (mostly HTTP) in a complex world — basic and digest authentication, redirections, cookies and more. Base undici fetch API.

10 lines (9 loc) 475 B
import { RequestOptions, RequestURL } from './Request'; export declare function request(url: RequestURL, options?: RequestOptions): Promise<import("./Response").HttpClientResponse>; export { HttpClient, HEADER_USER_AGENT as USER_AGENT } from './HttpClient'; export { MockAgent, ProxyAgent, Agent, Dispatcher, setGlobalDispatcher, getGlobalDispatcher, } from 'undici'; declare const _default: { request: typeof request; USER_AGENT: string; }; export default _default;