阿西河

所有教程

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

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js Http2Session localSettings 事件

      Node.js Http2Session localSettings 事件

      新增于: v8.4.0

      • settings < HTTP/2 Settings Object> A copy of the SETTINGS frame received.

      The ‘localSettings’ event is emitted when an acknowledgment SETTINGS frame has been received.

      When using http2session.settings() to submit new settings, the modified settings do not take effect until the ‘localSettings’ event is emitted.

      session.settings({ enablePush: false });
      
      session.on('localSettings', (settings) => {
        /* Use the new settings */
      });
      

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


      目录
      本文目录
      目录