阿西河

所有教程

公众号
🌙
阿西河前端的公众号

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js http2.getPackedSettings

      Node.js http2.getPackedSettings(settings)

      新增于: v8.4.0

      • 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.

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

      更多内容请参考:Node.js HTTP2,或者通过 点击对应菜单 进行查看;


      目录
      本文目录
      目录