request.rawHeaders


  • 类型:HTTP/2 原始头

原始请求/响应头完全按照收到的方式列出。

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

// 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);