Skip to content

FalconHQ/h2-server-push

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 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');

const registerParser = hsp('public');

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

License

MIT

About

HTTP2 Server Push Express Middleware

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •