(content-type request)
Returns the value of the Content-Type header of request
.
Returns the value of the Content-Type header of `request`.
Deserialize the body of response
according to the Content-Type header.
Deserialize the body of `response` according to the Content-Type header.
(deserialize-body {:keys [body] :as response} update-fn)
Update the :body of response
by applying update-fn
to it, if
it's a string.
Update the :body of `response` by applying `update-fn` to it, if it's a string.
Serialize the body of response
according to the Content-Type header.
Serialize the body of `response` according to the Content-Type header.
(wrap-output-hyphenate handler)
Returns a HTTP client that recursively replaces all underscores in the keys of the response map to dashes.
Returns a HTTP client that recursively replaces all underscores in the keys of the response map to dashes.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close