Headers

AA-like superset structure with the purpose of maintaining compatibility with the old HTTP stringstring headers field

Members

Functions

add
void add(string name, string value)
Undocumented in source. Be warned that the author may not have intended to support it.
get
string get(string key, string def)
Undocumented in source. Be warned that the author may not have intended to support it.
getAll
inout(string)[] getAll(string key)
Undocumented in source. Be warned that the author may not have intended to support it.
getLazy
string getLazy(string key, string def)
Undocumented in source. Be warned that the author may not have intended to support it.
opApply
int opApply(int delegate(ref string name, ref string value) dg)
Undocumented in source. Be warned that the author may not have intended to support it.
opApply
int opApply(int delegate(ref const(string) name, ref const(string) value) dg)
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
string[string] opCast()

Warning: discards repeating headers

opCast
string[][string] opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opIn_r
inout(string)* opIn_r(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
inout(string) opIndex(string name)

If multiple headers with this name are present, only the first one is returned.

opIndexAssign
string opIndexAssign(string value, string name)
Undocumented in source. Be warned that the author may not have intended to support it.
remove
void remove(string name)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

dup
Headers dup [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
length
size_t length [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

Header
struct Header
Undocumented in source.

Meta