IncomingMessage
Properties
A Record<string, string | string[]>
representing the HTTP response headers. The headers
object is formatted as follows:
A string
indicating the HTTP protocol version number. Typical values are '1.0' or '1.1'. Additionally httpVersionMajor
and httpVersionMinor
are two Integer-valued readable properties that return respectively the HTTP major and minor version numbers.
An Integer
indicating the HTTP protocol major version number.
An Integer
indicating the HTTP protocol minor version number.
A string[]
containing the raw HTTP response headers 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.
An Integer
indicating the HTTP response status code.
A string
representing the HTTP status message.