Archived
1
0

Add https server

This commit is contained in:
Asher
2019-07-11 17:12:52 -05:00
parent 81862d4fa1
commit 2b2aa9a211
20 changed files with 405 additions and 186 deletions

7
typings/httpolyglot.d.ts vendored Normal file
View File

@ -0,0 +1,7 @@
declare module "httpolyglot" {
import * as http from "http";
import * as https from "https";
function createServer(requestListener?: (req: http.IncomingMessage, res: http.ServerResponse) => void): http.Server;
function createServer(options: https.ServerOptions, requestListener?: (req: http.IncomingMessage, res: http.ServerResponse) => void): https.Server;
}