Impl, don't call directly.
Impl, don't call directly.
(base64-decode s)
base64 decode a base64-encoded string to an input stream
base64 decode a base64-encoded string to an input stream
(bbuf->str bbuf)
Creates a string from java.nio.ByteBuffer object. The encoding is fixed to UTF-8.
Creates a string from java.nio.ByteBuffer object. The encoding is fixed to UTF-8.
(date-format fmt)
Return a thread-safe GMT date format that can be used with format-date
and parse-date
.
See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4228335
Return a thread-safe GMT date format that can be used with `format-date` and `parse-date`. See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4228335
(format-timestamp inst)
Format a timestamp in milliseconds.
Format a timestamp in milliseconds.
(input-stream->byte-array is)
Copies is to a byte-array, leaving the input-stream's mark intact.
is must support .mark and .reset (e.g. BufferedInputStream)
Copies is to a byte-array, leaving the input-stream's mark intact. is must support .mark and .reset (e.g. BufferedInputStream)
(map-vals f m)
(map-vals f m ks)
Apply f to the values with the given keys, or all values if ks
is not specified.
Apply f to the values with the given keys, or all values if `ks` is not specified.
(query-string params)
Create a query string from a list of parameters. Values must all be strings.
Create a query string from a list of parameters. Values must all be strings.
(read-json readable)
Read readable as JSON. readable can be any valid input for clojure.java.io/reader.
Read readable as JSON. readable can be any valid input for clojure.java.io/reader.
(sha-256 data)
Returns the sha-256 hash of data, which can be a byte-array, an input-stream, or nil, in which case returns the sha-256 of the empty string.
Returns the sha-256 hash of data, which can be a byte-array, an input-stream, or nil, in which case returns the sha-256 of the empty string.
(url-encode s)
Percent encode the string to put in a URL.
Percent encode the string to put in a URL.
(with-defaults shape data)
Given a shape and data of that shape, add defaults for the following required keys if they are missing or bound to nil
:idempotencyToken
Given a shape and data of that shape, add defaults for the following required keys if they are missing or bound to nil :idempotencyToken
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close