class for storing headers parse from MHTML
Tries to somewhat mimic the behavior of the fetch-api Headers object, with some differences, notably that it does no validation.
add a key-value pair
If key is already present it will be appended.
iterate over all key-value pairs
Multiple values for the same key will be joined in the order they were added by delim.
delim
Optional
Multiple values for the same key will get iterated in the order they were added.
get the value for a key
If the key is missing, null will be returned, if multiple values for the key are present, they will be joined be delim.
get all values for a key
whether key has any values associated with it
all keys with at least one value
iterate over all values
If a key has multiple values they will be joined by delim.
iterate over all values added
Generated using TypeDoc
class for storing headers parse from MHTML
Tries to somewhat mimic the behavior of the fetch-api Headers object, with some differences, notably that it does no validation.