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

Prev:url-quotable? ( ch -- ? )
Next:query>assoc ( query -- assoc )


Vocabulary
urls.encoding

Inputs and outputs
assocan assoc
stra string


Word description
Converts an assoc of query parameters into a query string, performing URL encoding.

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

Examples
USING: io urls.encoding ; { { "from" "Lead" } { "to" "Gold, please" } } assoc>query print
from=Lead&to=Gold%2C%20please


Definition