(base64-decode s)
Returns s
as a Base64 decoded string.
Returns `s` as a Base64 decoded string.
(base64-encode bytes)
Returns s
as a Base64 encoded string.
Returns `s` as a Base64 encoded string.
(compact-map m)
Removes all map entries where the value of the entry is empty.
Removes all map entries where the value of the entry is empty.
(deep-merge & maps)
Like merge, but merges maps recursively.
Like merge, but merges maps recursively.
(deep-merge-with f & maps)
Like merge-with, but merges maps recursively, applying the given fn only when there's a non-map at a particular level.
Like merge-with, but merges maps recursively, applying the given fn only when there's a non-map at a particular level.
(format-query-params m)
Format the map m
into a query parameter string.
Format the map `m` into a query parameter string.
(format-url m)
Format the Ring map as an url.
Format the Ring map as an url.
(map-keys f coll)
Maps a function over the keys of an associative collection.
Maps a function over the keys of an associative collection.
(map-vals f coll)
Maps a function over the values of an associative collection.
Maps a function over the values of an associative collection.
(parse-double s)
Parse s
as a double number.
Parse `s` as a double number.
(parse-float s)
Parse s
as a float number.
Parse `s` as a float number.
(parse-integer s)
Parse s
as a integer number.
Parse `s` as a integer number.
(parse-long s)
Parse s
as a long number.
Parse `s` as a long number.
(parse-percent s)
Parse s
as a percentage.
Parse `s` as a percentage.
(parse-query-params s)
Parse the query parameter string s
and return a map.
Parse the query parameter string `s` and return a map.
(parse-url s)
Parse the url s
and return a Ring compatible map.
Parse the url `s` and return a Ring compatible map.
(pattern-quote s)
Quote the special characters in s
that are used in regular expressions.
Quote the special characters in `s` that are used in regular expressions.
(public-url url)
Return the formatted url
without password as a string.
Return the formatted `url` without password as a string.
(separator s)
Returns the first string that separates the components in s
.
Returns the first string that separates the components in `s`.
(split-by-comma s)
Split the string s
by comma.
Split the string `s` by comma.
(split-by-regex s pattern)
Split the string s
by the regex pattern
.
Split the string `s` by the regex `pattern`.
(url-decode s & [encoding])
Returns s
as an URL decoded string.
Returns `s` as an URL decoded string.
(url-encode s & [encoding])
Returns s
as an URL encoded string.
Returns `s` as an URL encoded string.
(utf8-string bytes)
Returns bytes
as an UTF-8 encoded string.
Returns `bytes` as an UTF-8 encoded string.
(with-retries n & body)
(with-retries &form &env n & body)
Executes body. If an exception is thrown, will retry. At most n retries are done. If still some exception is thrown it is bubbled upwards in the call chain.
Executes body. If an exception is thrown, will retry. At most n retries are done. If still some exception is thrown it is bubbled upwards in the call chain.
(with-retries* n thunk)
Executes thunk. If an exception is thrown, will retry. At most n retries are done. If still some exception is thrown it is bubbled upwards in the call chain.
Executes thunk. If an exception is thrown, will retry. At most n retries are done. If still some exception is thrown it is bubbled upwards in the call chain.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close