[Function] uri-parsed-query

Package

ystok.uri

Signature

uri-parsed-query uri => result-alist

Arguments
uri
An instance of the uri structure class.
Values

A alist of the following form:

((param1 . [value1 | nil]) ...)
Description

The function parses the string stored in the query slot of the given uri , percent-decode each value accordingly to the value of *default-external-format*, and returns the alist.

The result-alist is also cached into the query slot, so any future call of uri-query will also return this alist instead a query string.

Example
(uri-parsed-query (parse-uri "http://foo.bar/baz?a&b=zip"))
=> (("a") ("b . "zip))