Creates a new wrapper instance.
The headers object to wrap.
Checks if the wrapper is frozen (read-only).
true if the wrapper is frozen, false otherwise.
Gets the number of headers.
The number of headers in the object.
Clones the wrapper with a copy of the headers.
A new independent wrapper instance.
Gets the headers as an array of entries.
The array of [name, value] pairs.
Iterates over all headers.
The callback function to call for each header.
This wrapper for method chaining.
Freezes the wrapper to prevent modifications.
This wrapper for method chaining.
Gets a header value as a string or array of strings.
The header name (case-insensitive).
The header value, or undefined if the header does not exist.
Gets a header value as an array of strings.
The header name (case-insensitive).
The header values as an array, or undefined if the header does not exist.
Gets the Content-Type header as a parsed object (cached).
The parsed Content-Type object, or null if the header is not present.
Gets the Cookie header as a parsed object (cached).
The parsed cookies object, or null if the header is not present.
Gets the Set-Cookie header as a parsed object (cached).
The parsed Set-Cookie object, or null if the header is not present.
Gets a header value as a single string.
The header name (case-insensitive).
The first header value, or undefined if the header does not exist.
Checks if a header exists.
The header name (case-insensitive).
true if the header exists, false otherwise.
Merges headers from another object.
The headers object to merge from.
This wrapper for method chaining.
Sets a header value.
The header name (case-insensitive).
The new header value.
This wrapper for method chaining.
Sets the Content-Type header from an object.
The Content-Type object.
This wrapper for method chaining.
Sets the Cookie header from an object.
The cookies object.
This wrapper for method chaining.
Sets the Set-Cookie header from an object.
The Set-Cookie object.
This wrapper for method chaining.
Gets the headers as a strict headers object.
A copy of the headers object with all undefined values removed.
StaticfromFactory method to create a wrapper from a request-like object.
An object with a headers property.
A new wrapper instance.
StaticfromFactory method to create a wrapper from scratch.
A new wrapper instance with empty headers.
Wrapper class for HTTP message headers.