ring.util.codec
Functions for encoding and decoding data.
assoc-conj
(assoc-conj map key val)
Associate a key with a value in a map. If the key already exists in the map,
a vector of values is associated with the key.
base64-decode
(base64-decode encoded)
Decode a base64 encoded string into an array of bytes.
base64-encode
(base64-encode unencoded)
Encode an array of bytes into a base64 encoded string.
percent-decode
(percent-decode encoded)
(percent-decode encoded encoding)
Decode every percent-encoded character in the given string using the
specified encoding, or UTF-8 by default.
percent-encode
(percent-encode unencoded)
(percent-encode unencoded encoding)
Percent-encode every character in the given string using either the specified
encoding, or UTF-8 by default.
url-decode
(url-decode encoded)
(url-decode encoded encoding)
Returns the url-decoded version of the given string, using either a specified
encoding or UTF-8 by default. If the encoding is invalid, nil is returned.
url-encode
(url-encode unencoded)
(url-encode unencoded encoding)
Returns the url-encoded version of the given string, using either a specified
encoding or UTF-8 by default.