message.rawHeaders


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

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

键和值在同一个列表中。它 不是 元组的列表。因此,偶数位置是键,奇数位置是对应的值。

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