ParseFormURLEncoded¶
Parse an application/x-www-form-urlencoded string into a FormURLEncoded
collection.
Splits on &, then on the first =. Decodes + as space and
percent-decodes both keys and values.
Duplicate keys are preserved in order. Keys without = get an
empty-string value.
The ; separator (from an older HTML convention) is not supported —
it was dropped from the WHATWG URL Standard and is rarely encountered
in practice.
This works on any application/x-www-form-urlencoded string — URI query
components, HTTP POST request bodies, or any other source. The input
should not include a leading ? (that delimiter is not part of the
encoded data).
Constructors¶
create¶
Returns¶
- ParseFormURLEncoded val^
Public Functions¶
apply¶
Parameters¶
- input: String val
Returns¶
- (FormURLEncoded val | InvalidPercentEncoding val)
eq¶
Parameters¶
- that: ParseFormURLEncoded val
Returns¶
- Bool val
ne¶
Parameters¶
- that: ParseFormURLEncoded val
Returns¶
- Bool val