UNPKG

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