This namespace defines a default set of transform functions suitable for use in presenting results to HTTP clients.
Note that ring-based middleeware may take advantage of these functions either by single use or composition.
This namespace defines a default set of transform functions suitable for use in presenting results to HTTP clients. Note that ring-based middleeware may take advantage of these functions either by single use or composition.
(client-handler response)
(client-handler response err-handler)
(client-handler {:keys [status headers body error]} err-handler parse-fn)
(error-handler status headers body)
(error-handler status headers body default-msg)
(process-results data)
(process-results err-fn data)
(process-results err-fn ok-fn data)
(soft-reference->json! obj json-generator)
Given a soft reference object and a Cheshire JSON generator, write the data stored in the soft reference to the generator as a JSON string.
Note, however, that sometimes the value is not a soft reference, but rather a raw value from the response. In that case, we need to skip the object conversion, and just do the realization.
Given a soft reference object and a Cheshire JSON generator, write the data stored in the soft reference to the generator as a JSON string. Note, however, that sometimes the value is not a soft reference, but rather a raw value from the response. In that case, we need to skip the object conversion, and just do the realization.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close