Http.Headers

Headers utility.

Members

Functions

add
void add(string key, string value)

Adds a new key-value pair to the headers without overriding the existing ones.

get
string get(string key, string defaultValue)

Gets the value of a header and returns defaultValue if it does not exist.

opBinaryRight
string* opBinaryRight(string key)

Gets the pointer to a header. The key is case insensitive.

opIndex
string opIndex(string key)

Gets the value of a header. The key is case insensitive.

opIndexAssign
string opIndexAssign(string value, string key)

Assigns, and overrides if it already exists, a header value. The key is case-insensitive.

Properties

headers
Header[] headers [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

Header
struct Header
Undocumented in source.

Variables

_headersIndexes
size_t[string] _headersIndexes;
Undocumented in source.

Meta