Liking cljdoc? Tell your friends :D

nsfw.http

Request / response utilities

Request / response utilities
raw docstring

add-to-content-security-policyclj

(add-to-content-security-policy resp addition)
source

apply-middlewareclj

(apply-middleware mw routes-map)
source

apply-middleware-to-handlerclj

(apply-middleware-to-handler {:keys [handler middleware] :as route})
source

bootstrap3clj

source

cljs-page-templateclj

(cljs-page-template {:keys [js css env data body-class head meta-named title]})
source

compile-handlersclj

(compile-handlers handlers)
source

compile-specclj

(compile-spec specs)
source

content-typeclj

(content-type request)
source

csp-map->strclj

(csp-map->str m)
source

csp-str->mapclj

(csp-str->map s)
source

css-htmlclj

(css-html csss)
source

decode-bodyclj

(decode-body content-length body)
source

decode-content-typeclj

(decode-content-type cts)
source

decode-edn-bodyclj

(decode-edn-body r)
source

ednclj

(edn body)
source

gen-handlerclj

(gen-handler routes handlers)
source

header-forclj

source

headersclj

(headers & opts)
source

hiccup->html-stringclj

(hiccup->html-string body)
source

html-headerclj

source

html-respclj

(html-resp body)
source

html-response?clj

(html-response? r)
source

js-entries->csp-fragclj

(js-entries->csp-frag os)
source

js-entry->csp-fragclj

(js-entry->csp-frag o)
source

js-htmlclj

(js-html jss)
source

js-var-objclj

(js-var-obj var-name clj-obj)
source

json-content?clj

(json-content? req)
source

merge-cspclj

(merge-csp base frag)
source

perm-redirectclj

(perm-redirect loc opts)
source

redirectclj

source

remove-pathclj

(remove-path url)
source

render-ednclj

(render-edn body)
source

render-jsonclj

(render-json body)
(render-json opts body)
source

render-specclj

(render-spec specs)
source

response-bodyclj

(response-body {:keys [content-length body]})

Turn a HttpInputStream into a string.

Turn a HttpInputStream into a string.
sourceraw docstring

routes->bidiclj

(routes->bidi routes)
source

routes->handlerclj

(routes->handler routes)
source

script-block->csp-fragclj

(script-block->csp-frag [_ & args])
source

script-source->csp-fragclj

(script-source->csp-frag s)
source

temp-redirectclj

(temp-redirect loc opts)
source

wrap-404clj

(wrap-404 h handler)
source

wrap-contextclj

(wrap-context h k v)
source

(wrap-cookie-session h domain key)
source

wrap-decode-json-bodyclj

(wrap-decode-json-body h)
source

wrap-edn-requestclj

(wrap-edn-request h)
source

wrap-exceptionclj

(wrap-exception h handler)
source

wrap-fileclj

(wrap-file h dir)
source

wrap-html-responseclj

(wrap-html-response h)

Render hiccup vector into an HTML string when the content type is text/html.

Render hiccup vector into an HTML string when the content type is
text/html.
sourceraw docstring

wrap-json-requestclj

(wrap-json-request h)
source

wrap-json-responseclj

(wrap-json-response h)
source

wrap-log-requestclj

(wrap-log-request handler)
source

wrap-paramsclj

(wrap-params h & [opts])
source

wrap-resourceclj

(wrap-resource h dir)
source

wrap-transit-requestclj

(wrap-transit-request h & [handlers])
source

wrap-transit-responseclj

(wrap-transit-response h & [handlers])
source

write-page-dataclj

(write-page-data key payload)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close