UNPKG

690 BTypeScriptView Raw
1import { Callback } from './Callback';
2import { CachedResponse } from './CachedResponse';
3import { HttpVerb } from './HttpVerb';
4import { ICache } from './ICache';
5import { Options } from './Options';
6import Response = require('http-response-object');
7import { URL } from 'url';
8declare function request(method: HttpVerb, url: string | URL, options: Options | null | void, callback: Callback): void | NodeJS.WritableStream;
9declare function request(method: HttpVerb, url: string | URL, callback: Callback): void | NodeJS.WritableStream;
10export default request;
11export { HttpVerb };
12export { Options };
13export { Callback };
14export { Response };
15export { CachedResponse };
16export { ICache };