阿西河

所有教程

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

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js Http2Stream trailers 事件

      Node.js Http2Stream trailers 事件

      新增于: v8.4.0

      The ‘trailers’ event is emitted when a block of headers associated with trailing header fields is received. The listener callback is passed the HTTP/2 Headers Object and flags associated with the headers.

      Note that this event might not be emitted if http2stream.end() is called before trailers are received and the incoming data is not being read or listened for.

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

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


      目录
      本文目录
      目录