clj-http.util documentation
Helper functions for the HTTP client.
base64-encode
(base64-encode unencoded)
Encode an array of bytes into a base64 encoded string.
deflate
(deflate b)
Returns a deflate'd version of the given byte array.
gunzip
(gunzip b)
Returns a gunzip'd version of the given byte array.
gzip
(gzip b)
Returns a gzip'd version of the given byte array.
inflate
(inflate b)
Returns a zlib inflate'd version of the given byte array.
lower-case-keys
(lower-case-keys m)
Recursively lower-case all map keys that are strings.
url-decode
(url-decode encoded & [encoding])
Returns the form-url-decoded version of the given string, using either a
specified encoding or UTF-8 by default.
url-encode
(url-encode unencoded)
Returns an UTF-8 URL encoded version of the given string.
utf8-bytes
(utf8-bytes s)
Returns the UTF-8 bytes corresponding to the given string.
utf8-string
(utf8-string b)
Returns the String corresponding to the UTF-8 decoding of the given bytes.