(edn-file file-path)
(edn-resource file-path)
(edn-resource file-path fallback-path)
(edn-resource file-path fallback-path process-path-fn)
Load an EDN resource file and read its contents. The only required argument
is file-path
, which is the path of a file relative the projects resources
directory (resources/
or, for tests, test/resources/
).
Optional arguments:
fallback-path
- A "default" path to check if file-path is actually an
empty string. Useful in places you load a file-path
from a config and its
value might be absent.process-path-fn
- The function to use for getting the URL of the file. By
default uses clojure.java.io/resource
.Load an EDN resource file and read its contents. The only required argument is `file-path`, which is the path of a file relative the projects resources directory (`resources/` or, for tests, `test/resources/`). Optional arguments: * `fallback-path` - A "default" path to check if file-path is actually an empty string. Useful in places you load a `file-path` from a config and its value might be absent. * `process-path-fn` - The function to use for getting the URL of the file. By default uses `clojure.java.io/resource`.
(emap->datoms idx e emap)
(empty-value [_ _ v])
(ensure-keyword x)
(eseq? v)
(fully-qualify-symbol sym)
(fully-qualify-symbol ns sym)
(map-vals f m)
(name-value-entities m val-key)
(payload-response request response-data errors-data)
(payload-response request response-data errors-data headers)
(payload-response request response-data errors-data headers status)
(push-down-names m)
(read-edn string & args)
Converts an edn string into Clojure data. args
are clojure.edn opts
:readers
defaults to *data-readers*
Converts an edn string into Clojure data. `args` are clojure.edn `opts` `:readers` defaults to `*data-readers*`
(read-json string & args)
Converts json string to Clojure data. By default, keys are keywordized.
Converts json string to Clojure data. By default, keys are keywordized.
(read-transit-json transit-json-str)
(response body headers status)
(short-hash)
(status-code response errors)
(str->inputstream text)
(str->inputstream text encoding)
(write-json data & args)
Writes json string given Clojure data. By default, unicode is not escaped.
Writes json string given Clojure data. By default, unicode is not escaped.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close