mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-22 18:26:01 +08:00
32 lines
764 B
Plaintext
32 lines
764 B
Plaintext
// @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};
|