cmr.ous.util.http.response
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.
add-header
Documentation forthcoming
client-handler
(client-handler response)(client-handler response parse-fn)Documentation forthcoming
cors
Documentation forthcoming
error
Documentation forthcoming
error-handler
(error-handler status headers body)Documentation forthcoming
errors
Documentation forthcoming
html
(html request data)Documentation forthcoming
json
(json request data)Documentation forthcoming
json-errors
Documentation forthcoming
json-handler
Documentation forthcoming
not-allowed
Documentation forthcoming
not-found
Documentation forthcoming
ok
Documentation forthcoming
parse-json-body
Documentation forthcoming
parse-xml-body
Documentation forthcoming
process-err-results
(process-err-results data)Documentation forthcoming
process-results
(process-results data)Documentation forthcoming
text
(text request data)Documentation forthcoming
version-media-type
Documentation forthcoming
xml-errors
Documentation forthcoming