query>assoc ( query -- assoc )
Furnace framework » URL objects » URL encoding and decoding

Prev:assoc>query ( assoc -- str )


Vocabulary
urls.encoding

Inputs
querya string


Outputs
assocan assoc


Word description
Parses a URL query string and URL-decodes each component.

Notes
This word is used by the implementation of URL objects. It is also used by the HTTP server to parse POST requests.

Examples
USING: linked-assocs prettyprint urls.encoding ; "gender=female&agefrom=22&ageto=28&location=Omaha+NE" query>assoc .
LH{ { "gender" "female" } { "agefrom" "22" } { "ageto" "28" } { "location" "Omaha NE" } }


Definition