Skip to content

shumbo/node-http2-server-push-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-http2-server-push-example

Send/receive HTTP/2 server push with Node.js

This repo includes three examples:

  • server.js uses "stream" event
  • server-handler.js uses compaticility API (i.e. (req, res) => void)
  • server-hapi.js uses hapi.js

Once you start a server, run client.js to access. You can also use other http clients that support http2 server push, such as nghttp2.

Usage

git clone https://github.com/shumbo/node-http2-server-push-example.git
yarn
node server.js # to start server
node client.js # to start client

Releases

No releases published

Packages

No packages published