Struct InetHeaderMap
Behaves like string[string] but case does not matter for the key and the insertion order is not changed.
This kind of map is used for MIME headers (e.g. for HTTP), where the case of the key strings
does not matter. Note that the map can contain fields with the same key multiple times if
addField
is used for insertion. Insertion order is preserved.
Note that despite case not being relevant for matching keyse, iterating over the map will yield the original case of the key that was put in.
Properties
Name | Type | Description |
---|---|---|
dup
[get]
|
InetHeaderMap |
Duplicates the header map. |
length
[get]
|
ulong |
The number of fields present in the map. |
Methods
Name | Description |
---|---|
addField
|
Adds a new field to the map. |
get
|
Returns the first field that matches the given key .
|
opApply
|
Iterates over all fields, including duplicates. |
opBinaryRight
|
Returns a pointer to the first field that matches the given key .
|
opIndex
|
Returns the first value matching the given key .
|
opIndexAssign
|
Adds or replaces the given field with a new value. |
remove
|
Removes the first field that matches the given key .
|
Authors
Sönke Ludwig
Copyright
© 2012 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.