cmr.opendap.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.

client-handler

(client-handler response)(client-handler {:keys [status headers body error]} parse-fn)

Documentation forthcoming

cors

(cors request response)

Documentation forthcoming

html

(html _request data)

Documentation forthcoming

json

(json _request data)

Documentation forthcoming

json-handler

Documentation forthcoming

not-allowed

(not-allowed data)

Documentation forthcoming

not-found

(not-found _request)

Documentation forthcoming

ok

(ok _request & args)

Documentation forthcoming

parse-json-body

(parse-json-body body)

Documentation forthcoming

text

(text _request data)

Documentation forthcoming