Wondering what’s next for npm?Check out our public roadmap! »

    h2-server-push

    1.0.5 • Public • Published

    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

    Install

    npm i h2-server-push

    DownloadsWeekly Downloads

    8

    Version

    1.0.5

    License

    MIT

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar