Skip to content

elmarini/h2-server-push

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

h2-server-push

An express middleware that implements server push in HTTP2.

Installation

npm install h2-server-push --save

Note: Requires node-spdy for HTTP2

Usage

const hsp = require('h2-server-push');

app.get('/', hsp,  (req, res) => {
    res.sp('index.html')
});

License

MIT

About

HTTP2 Server Push Express Middleware

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%