parseQueryParams

fnTuple!(string, string)[] parseQueryParams(string q) @safe

Parse a query string into key/value pairs without decoding.

Splits on `&` and, for each pair, splits on the first `=` into key and value. Keys with no `=` are paired with an empty value. Percent-decoding is not applied; use pctDecode on individual parts if needed.

Parameters

qQuery string without the leading `?`.

Returns

Array of (key, value) tuples.