IncomingMessage

external class IncomingMessage(source)

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val abortedEvent: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val dataEvent: <Error class: unknown class><<Error class: unknown class><<Error class: unknown class><out <Error class: unknown class>>>>
Link copied to clipboard
val endEvent: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val errorEvent: <Error class: unknown class><<Error class: unknown class><<Error class: unknown class>>>
Link copied to clipboard
var headers: <Error class: unknown class><String, Any>

A Record<string, string | string[]> representing the HTTP response headers. The headers object is formatted as follows:

Link copied to clipboard

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.

Link copied to clipboard

An Integer indicating the HTTP protocol major version number.

Link copied to clipboard

An Integer indicating the HTTP protocol minor version number.

Link copied to clipboard
var rawHeaders: <Error class: unknown class><String>

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.

Link copied to clipboard

An Integer indicating the HTTP response status code.

Link copied to clipboard

A string representing the HTTP status message.