QueryParams

The QueryParams class is memory-friendly and therefore suitable for stack allocated 'scope' instances.

Constructors

this
this(char element_delim, char keyval_delim)

Constructor

Members

Functions

opApply
int opApply(int delegate(ref cstring key, ref cstring value) ext_dg)

'foreach' iteration over the URI query parameter list items, each one split into a key/value pair. key and value slice the string passed to query() so DO NOT MODIFY THEM. (You may, however, modify their content; this will modify the string passed to query() in-place.)

set
typeof(this) set(cstring query)

Sets the URI query string to parse

Variables

element_delim
char element_delim;
keyval_delim
char keyval_delim;

Delimiter of elements, where each element is a key/value pair, and between key and value of an element.

trim_whitespace
bool trim_whitespace;

Option to trim whitespace from keys and values, enabled by default.

Meta