wzp
2021-05-13 7d694a9113118daec5be7ac224dab46a3b20f106
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// @flow
// Generated using flowgen2
 
import type {Callback} from './Callback';
import type {CachedResponse} from './CachedResponse';
import type {HttpVerb} from './HttpVerb';
import type {ICache} from './ICache';
import type {Options} from './Options';
const Response = require('http-response-object');
import {URL} from 'url';
 
declare function request(
  method: HttpVerb,
  url: string | URL,
  options: Options | null | void,
  callback: Callback,
): void | stream$Writable;
 
declare function request(
  method: HttpVerb,
  url: string | URL,
  callback: Callback,
): void | stream$Writable;
 
export default request;
export type {HttpVerb};
export type {Options};
export type {Callback};
export {Response};
export type {CachedResponse};
export type {ICache};