Creates a new header list.
The parser options associated with headers in the list.
ReadonlyoptionsThe parser options associated with headers in this list.
Invoked when the header list changes.
Whether a body separator should be written after the headers.
The number of headers.
Whether this list is read-only.
Gets the header at the specified index.
The index.
The header.
Replaces the header at the specified index.
The index.
The replacement header.
Gets the value of the first matching header.
The header identifier or field name.
The header value, or null if it does not exist.
Adds a header to the list.
A header instance, or a field/id with value and optional charset.
Removes all headers from the list.
Determines whether the list contains the specified header or field.
The header, header identifier, or field name.
true if the header is contained; otherwise, false.
Copies the headers to an array.
The destination array.
The index into the array.
Gets the index of the first matching header.
The header, header identifier, or field name.
The header index, or -1 if it is not found.
Removes the first matching header.
The header, header identifier, or field name.
true if a header was removed; otherwise, false.
Replaces all matching headers with a single header.
A header instance, or a field/id with value and optional charset.
Attempts to get the first matching header.
The header identifier or field name.
The header, or null if it does not exist.
Writes the headers to a stream using the specified formatting options.
The formatting options.
The output stream.
StaticloadParses a list of headers from a stream or byte buffer.
The source stream or buffer.
The parser options.
A Result; { ok: false } with a MimeError on malformed input.
Represents a list of message headers.