• {string[]}

    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.

    1. // Prints something like:
    2. //
    3. // [ 'user-agent',
    4. // 'this is invalid because there can be only one',
    5. // 'User-Agent',
    6. // 'curl/7.22.0',
    7. // 'Host',
    8. // '127.0.0.1:8000',
    9. // 'ACCEPT',
    10. // '*/*' ]
    11. console.log(request.rawHeaders);