Socket
Book a DemoInstallSign in
Socket

http2-serve

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http2-serve

基于 [serve-handle](https://github.com/zeit/serve-handler) 的简单的 http1.1/https/http2 web server,需要用到 https 或者 http2 的 demo 可以直接用这个,如果是只用到 http1.1 建议直接使用 [serve](https://github.com/zeit/serve)。 证书是直接创建的,属于不被信任证书,浏览器会警告,需要手动跳过警告。

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

http2-serve

基于 serve-handle 的简单的 http1.1/https/http2 web server,需要用到 https 或者 http2 的 demo 可以直接用这个,如果是只用到 http1.1 建议直接使用 serve。 证书是直接创建的,属于不被信任证书,浏览器会警告,需要手动跳过警告。

当然 http2 必须是 https。

安装

npm install -g http2-serve

使用

当前目录运行下面的命令,当前目录为 web 服务根目录。

http2-sever -h 列出命令介绍。

  • -2 使用 http2。
  • -s 使用 https。
http2-serve -2

FAQs

Package last updated on 10 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts