Musique/node_modules/@derhuerst/http-basic/lib/index.d.ts

17 lines
690 B
TypeScript
Raw Permalink Normal View History

2021-12-04 19:00:33 +00:00
import { Callback } from './Callback';
import { CachedResponse } from './CachedResponse';
import { HttpVerb } from './HttpVerb';
import { ICache } from './ICache';
import { Options } from './Options';
import Response = require('http-response-object');
import { URL } from 'url';
declare function request(method: HttpVerb, url: string | URL, options: Options | null | void, callback: Callback): void | NodeJS.WritableStream;
declare function request(method: HttpVerb, url: string | URL, callback: Callback): void | NodeJS.WritableStream;
export default request;
export { HttpVerb };
export { Options };
export { Callback };
export { Response };
export { CachedResponse };
export { ICache };