UNPKG

461 BTypeScriptView Raw
1/// <reference types="node" />
2import http, { IncomingMessage } from 'http';
3import https from 'https';
4/**
5 * Async wrapper for making HTTP GET requests
6 * @param urlString
7 */
8export declare function httpGetAsync(urlString: string, agent?: http.Agent): Promise<IncomingMessage>;
9/**
10 * Async wrapper for making HTTPS GET requests
11 * @param urlString
12 */
13export declare function httpsGetAsync(urlString: string, agent?: https.Agent): Promise<IncomingMessage>;