Liking cljdoc? Tell your friends :D

bones.http.handlers


allow-corsclj

(allow-cors shield)

access-control attributes for resources

access-control attributes for resources
sourceraw docstring

appclj

(app conf shield)
source

bad-request-responseclj

(bad-request-response param-type)

response functions for known request problems

response functions for known request problems
sourceraw docstring

combine-routesclj

(combine-routes & routes)
source

command-handlerclj

(command-handler commands shield)

does two things, register commands and return yada handler

does two things, register commands and return yada handler
sourceraw docstring

command-list-handlerclj

(command-list-handler commands)
source

command-responseclj

(command-response ctx)
source

custom-404clj

(custom-404 {:keys [body]})
source

encrypt-responseclj

(encrypt-response shield ctx result)
source

event-stream-handlerclj

(event-stream-handler event-fn shield)
source

format-eventclj

(format-event {:keys [event data id] :as datum :or {data datum}})
source

handle-errorclj

(handle-error ctx)
source

handle-event-streamclj

(handle-event-stream event-fn)
source

handle-wsclj

(handle-ws event-fn)
source

handlerclj

(handler resource)

common handler definition for all resources

common handler definition for all resources
sourceraw docstring

loggerclj

(logger ctx)

logs exceptions, ignoring special status(422) exceptions

logs exceptions, ignoring special status(422) exceptions
sourceraw docstring

login-handlerclj

(login-handler login-spec login-fn shield)
source

login-responseclj

(login-response login-fn login-spec shield)
source

logout-handlerclj

(logout-handler logout-fn shield)
source

logout-responseclj

(logout-response logout-fn shield)
source

make-public-routeclj

(make-public-route opts)
source

not-found-handlerclj

(not-found-handler)
source

not-found-routeclj

(not-found-route)
source

parse-schema-errorclj

(parse-schema-error ctx)

an attempt to make data specification errors friendlier

an attempt to make data specification errors friendlier
sourceraw docstring

publicclj

(public {:keys [path index-files directory]
         :or {path "/" directory "public" index-files ["index.html"]}})

serves files - not meant to serve a website because a directory(/) request redirects to index.html rather than serving it, which is what a static file server(nginx) would do. This is helpful for development.

serves files - not meant to serve a website because a directory(/) request
*redirects* to index.html rather than serving it, which is what a static file
server(nginx) would do. This is helpful for development.
sourceraw docstring

query-handlerclj

(query-handler query-spec query-fn shield)
source

query-responseclj

(query-response query-fn query-spec)
source

require-loginclj

(require-login shield)

access-control attributes for resources

access-control attributes for resources
sourceraw docstring

routesclj

(routes req-handlers shield)
source

schema-responseclj

(schema-response param-type ctx)

note: clojure.spec.alpha errors are also rendered, this is used for the coercion that yada offers from prismatic schema

note: clojure.spec.alpha errors are also rendered, this is used for the
coercion that yada offers from prismatic schema
sourceraw docstring

(unset-cookie ctx shield)
source

ws-connectclj

(ws-connect req source)
source

ws-handlerclj

(ws-handler event-fn shield)
source

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

× close