Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

HTTP/2 example

Simple HTTP/2 server using tinyhttp and http2 module.

Setup

Generate the certificate key.

openssl req -x509 -newkey rsa:2048 -nodes -sha256 -subj '/CN=localhost' \
  -keyout localhost-privkey.pem -out localhost-cert.pem

Install all dependencies

tinyhttp new http2

Run

node index.js

and in another terminal:

curl https://localhost:3000 -kiv