Namespace: joker.url
v1.0Contents
Summary
Escapes URL path/query components and parses URL-encoded query strings.
Index
Constants
Constants are variables with :const true in their metadata. Joker currently does not recognize them as special; as such, it allows redefining them or their values.-
(None.)
Variables
-
(None.)
Functions, Macros, and Special Forms
-
parse-query
Function v1.3.6(parse-query s)Parses URL-encoded query string s into a map of string keys to value vectors.
Always returns a map containing the query parameters found.
Query is expected to be a list of key=value settings separated by ampersands. A setting without
an equals sign is interpreted as a key set to an empty value. Settings containing a non-URL-encoded
semicolon or malformed escapes throw Error. -
path-escape
Function v1.0(path-escape s)Escapes the string so it can be safely placed inside a URL path segment.
-
path-unescape
Function v1.0(path-unescape s)Reverses path-escape for one URL path segment.
Converts percent-encoded substrings such as "%2F" to their bytes. Unlike
query-unescape, it leaves '+' unchanged. Throws Error when a percent escape is
malformed. -
query-escape
Function v1.0(query-escape s)Escapes the string so it can be safely placed inside a URL query.
-
query-unescape
Function v1.0(query-unescape s)Reverses query-escape for query text.
Converts percent-encoded substrings such as "%2F" to their bytes and '+'
into space. Throws Error when a percent escape is malformed.