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

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

Packages

Used by

Contributors

Languages