mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-31 14:58:05 +00:00
10 lines
389 B
TypeScript
10 lines
389 B
TypeScript
|
|
import { RequestOptions, IncomingMessage, ClientRequest, default as http } from 'http';
|
||
|
|
import { EventEmitter } from 'node:events'
|
||
|
|
import { URL } from 'url'
|
||
|
|
import https from 'https';
|
||
|
|
|
||
|
|
const httpLibs: {
|
||
|
|
[key: string]: {
|
||
|
|
request: (options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void) => ClientRequest;
|
||
|
|
};
|
||
|
|
} = { 'http:': http, 'https:': https };
|