Headers

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

Constructors

this
this(string[string] aa)
Undocumented in source.
this
this(string[][string] aa)
Undocumented in source.

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.
opBinaryRight
inout(string)* opBinaryRight(string name)
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.
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.
require
string require(string key, string value)
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