Create a new wrapper instance.
The headers to wrap
Check if wrapper is frozen (read-only).
true if wrapper is frozen, false otherwise
Get headers length (number of keys in object).
Size of the body
Loop over headers entries.
Callback function
This wrapper for method chaining
Freeze wrapper to prevent modifications.
This wrapper for method chaining
Get header value as string or array of strings.
Header name (case-insensitive)
Header value as string, array of strings, or undefined if header is not exists
Get header values as array of strings.
Header name (case-insensitive)
Header values as array of strings or undefined if header is not exists
Get Content-Type header as parsed object (cached).
Parsed content-type as object, or null if header is not exists
Get Cookie header as parsed object (cached).
Parsed cookie as object, or null if header is not exists
Get Set-Cookie header as parsed object (cached).
Parsed set-cookie as object, or null if header is not exists
Get header value as a single string.
Header name (case-insensitive)
First header value or undefined if header is not exists
Check header exists.
Header name
true if header exists, false otherwise
Merge headers.
Headers object to merge from
This wrapper for method chaining
Set header value.
Header name
New header value
This wrapper for method chaining
Set Content-Type header from object.
Content-type object
This wrapper for method chaining
Set Cookie header from object.
Cookies object
This wrapper for method chaining
Set Set-Cookie header from object.
SetCookies object
This wrapper for method chaining
StaticfromFactory method to create wrapper from request-like object.
Object with headers property
New wrapper instance
Staticfrom
Wrapper for HTTP message headers.