阿西河

所有教程

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

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js ClientHttp2Session origin 事件

      Node.js ClientHttp2Session origin 事件

      新增于: v10.12.0

      • origins < string[]>

      The ‘origin’ event is emitted whenever an ORIGIN frame is received by the client. The event is emitted with an array of origin strings. The http2session.originSet will be updated to include the received origins.

      const http2 = require('http2');
      const client = http2.connect('https://example.org');
      
      client.on('origin', (origins) => {
        for (let n = 0; n < origins.length; n++)
          console.log(origins[n]);
      });
      

      The ‘origin’ event is only emitted when using a secure TLS connection.


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


      目录
      本文目录
      目录