文件名称:http-server-plus:增强的http.Server,HTTPHTTPS和同一实例上的多个端口
文件大小:71KB
文件格式:ZIP
更新时间:2024-06-13 01:35:54
JavaScript
http-server-plus 增强的http.Server ,HTTP / HTTPS / HTTP2和同一实例上的多个端口 安装 安装: npm install --save http-server-plus 例子 // The `create()` method can also take a `requestListener`, just like // `http.createServer()`. var app = require ( "express" ) ( ) ; var server = require ( "http-server-plus" ) . create ( app ) ; // The listen method returns a promise which resolves when the server // starts listenin
【文件预览】:
http-server-plus-master
----.gitignore(111B)
----README.md(4KB)
----examples()
--------basic.js(640B)
----index.spec.js(2KB)
----package.json(1KB)
----index.js(5KB)
----.npmignore(271B)
----.travis.yml(54B)
----.editorconfig(253B)
----.eslintrc.js(281B)
----.prettierrc.js(78B)
----package-lock.json(249KB)