Skip to content

ParseFormURLEncoded

[Source]

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).

primitive val ParseFormURLEncoded

Constructors

create

[Source]

new val create()
: ParseFormURLEncoded val^

Returns


Public Functions

apply

[Source]

fun box apply(
  input: String val)
: (FormURLEncoded val | InvalidPercentEncoding val)

Parameters

Returns


eq

[Source]

fun box eq(
  that: ParseFormURLEncoded val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: ParseFormURLEncoded val)
: Bool val

Parameters

Returns