https://github.com/eteplus/http2-demo
http2 demo
https://github.com/eteplus/http2-demo
Last synced: about 1 year ago
JSON representation
http2 demo
- Host: GitHub
- URL: https://github.com/eteplus/http2-demo
- Owner: eteplus
- License: mit
- Created: 2017-08-07T04:01:59.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-07T05:06:46.000Z (almost 9 years ago)
- Last Synced: 2025-03-26T20:33:29.621Z (over 1 year ago)
- Language: JavaScript
- Size: 112 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### HTTP2 与 HTTP1.1
1. http 和 http2 图片加载速度对比
2. 请求页面,推送页面相关资源
打开chrome开发者工具,查看资源获取状况
### 创建Https 私钥和证书
```bash
#生成私钥key文件
openssl genrsa 1024 > private.pem
#通过私钥文件生成CSR证书签名
openssl req -new -key private.pem -out csr.pem
#通过私钥文件和CSR证书签名生成证书文件
openssl x509 -req -days 365 -in csr.pem -signkey private.pem -out server.crt
# private.pem: 私钥
# csr.pem: CSR证书签名
# server.crt: 证书文件
```
### 安装:
```bash
npm install
npm start
```
### License
The MIT License (MIT)