parseQS

Parse a query given as a string argument.

Arguments:

qs: percent-encoded query string to be parsed

@safe
string[][string]
parseQS
(
string qs
,
Flag!"keepBlankValues" keep_blank_values = No.keepBlankValues
,
Flag!"strictParsing" strict_parsing = No.strictParsing
,
string encoding = "utf-8"
,,
int max_num_fields = int.max
)

Detailed Description

keep blank values

flag indicating whether blank values in percent-encoded queries should be treated as blank strings. A true value indicates that blanks should be retained as blank strings. The default false value indicates that blank values are to be ignored and treated as if they were not included.

strict parsing

flag indicating what to do with parsing errors. If false (the default), errors are silently ignored. If true, errors raise a ValueError exception.

encoding and errors: specify how to decode percent-encoded sequences into Unicode characters, as accepted by the bytes.decode() method.

max num fields

int. If set, then throws a ValueError if there are more than n fields read by parseQSL().

Returns a dictionary.

Meta