Skip to content
This repository was archived by the owner on Jun 30, 2026. It is now read-only.
FalconHQPublic archive

About

HTTP2 Server Push Express Middleware

Resources

Stars

15 stars

Watchers

2 watching

Forks

Latest commit

 

History

20 Commits

Folders and files

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

15 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages