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.

add-header

(add-header response field value)

Documentation forthcoming

client-handler

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

Documentation forthcoming

cors

(cors request response)

Documentation forthcoming

error

(error error)

Documentation forthcoming

error-handler

(error-handler status headers body)

Documentation forthcoming

errors

(errors errors)

Documentation forthcoming

html

(html _request data)

Documentation forthcoming

json

(json _request data)

Documentation forthcoming

json-errors

(json-errors body)

Documentation forthcoming

json-handler

Documentation forthcoming

not-allowed

(not-allowed message)(not-allowed message other-errors)

Documentation forthcoming

not-found

(not-found _request)

Documentation forthcoming

ok

(ok _request & args)

Documentation forthcoming

parse-json-body

(parse-json-body body)

Documentation forthcoming

parse-xml-body

(parse-xml-body body)

Documentation forthcoming

process-err-results

(process-err-results data)

Documentation forthcoming

process-ok-results

(process-ok-results data)

Documentation forthcoming

process-results

(process-results data)

Documentation forthcoming

text

(text _request data)

Documentation forthcoming

version-media-type

(version-media-type response value)

Documentation forthcoming

xml-errors

(xml-errors body)

Documentation forthcoming