Constructor.
Optional
values: Record<string, any>an object who's enumerable properties will be added to this map
Private
#mappingList of mappings to maintain insertion order.
Private
#mappingsMapping of lower-case header names to {key:X, val:[]} values.
Static
Readonly
ACCEPTThe Accept
header.
Static
Readonly
AUTHORIZATIONThe Authorization
header.
Static
Readonly
CONTENT_The Content-MD5
header.
Static
Readonly
CONTENT_The Content-Type
header.
Static
Readonly
DATEThe Date
header.
Static
Readonly
DIGESTThe Digest
header.
Static
Readonly
HOSTThe Host
header.
Static
Readonly
X_The X-SN-Date
header.
Private
#addAdd/replace values on a map.
the key to change
the value to add; if undefined
then nothing will be added
Optional
replace: booleanif true
then replace all existing values;
if false
append to any existing values
this object
Add a value.
This method will append values to existing keys.
the key to use
the value to add; if undefined
nothing will be added
Remove all properties from this map.
this object
Set a value.
This method will replace any existing values with just value
.
the key to use
the value to set; if undefined
nothing will be added
this object
Set multiple values.
This method will replace any existing values with those provided on values
.
an object who's enumerable properties will be added to this map
this object
Generated using TypeDoc
HTTP headers multi-map.