阿西河

所有教程

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

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js http2 request.rawHeaders

      Node.js http2 request.rawHeaders

      新增于: v8.4.0

      • < string[]>

      The raw request/response headers list exactly as they were received.

      Note that the keys and values are in the same list. It is not a list of tuples. So, the even-numbered offsets are key values, and the odd-numbered offsets are the associated values.

      Header names are not lowercased, and duplicates are not merged.

      // Prints something like:
      //
      // [ 'user-agent',
      //   'this is invalid because there can be only one',
      //   'User-Agent',
      //   'curl/7.22.0',
      //   'Host',
      //   '127.0.0.1:8000',
      //   'ACCEPT',
      //   '*/*' ]
      console.log(request.rawHeaders);
      

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


      目录
      本文目录
      目录