阿西河

所有教程

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

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js ClientHttp2Stream headers 事件

      Node.js ClientHttp2Stream headers 事件

      新增于: v8.4.0

      The ‘headers’ event is emitted when an additional block of headers is received for a stream, such as when a block of 1xx informational headers is received. The listener callback is passed the HTTP/2 Headers Object and flags associated with the headers.

      stream.on('headers', (headers, flags) => {
        console.log(headers);
      });
      

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


      目录
      本文目录
      目录