• settings {HTTP/2 Settings Object}
    • Returns: {Buffer}

    Returns a Buffer instance containing serialized representation of the given HTTP/2 settings as specified in the [HTTP/2][] specification. This is intended for use with the HTTP2-Settings header field.

    1. const http2 = require('http2');
    2. const packed = http2.getPackedSettings({ enablePush: false });
    3. console.log(packed.toString('base64'));
    4. // Prints: AAIAAAAA