Liking cljdoc? Tell your friends :D

compojure.api.core


ANYcljmacro

(ANY & args)
source

contextcljmacro

(context & args)
source

defroutescljmacro

(defroutes name & routes)

Define a Ring handler function from a sequence of routes. The name may optionally be followed by a doc-string and metadata map.

Define a Ring handler function from a sequence of routes.
The name may optionally be followed by a doc-string and metadata map.
sourceraw docstring

DELETEcljmacro

(DELETE & args)
source

GETcljmacro

(GET & args)
source

(HEAD & args)
source

let-routescljmacro

(let-routes bindings & body)

Takes a vector of bindings and a body of routes.

Equivalent to: (let [...] (routes ...))

Takes a vector of bindings and a body of routes.

Equivalent to: `(let [...] (routes ...))`
sourceraw docstring

middlewarecljmacro

(middleware middleware & body)

Wraps routes with given middlewares using thread-first macro.

Note that middlewares will be executed even if routes in body do not match the request uri. Be careful with middlewares that have side-effects.

Wraps routes with given middlewares using thread-first macro.

Note that middlewares will be executed even if routes in body
do not match the request uri. Be careful with middlewares that
have side-effects.
sourceraw docstring

OPTIONScljmacro

(OPTIONS & args)
source

PATCHcljmacro

(PATCH & args)
source

POSTcljmacro

(POST & args)
source

PUTcljmacro

(PUT & args)
source

routesclj

(routes & handlers)

Create a Ring handler by combining several handlers into one.

Create a Ring handler by combining several handlers into one.
sourceraw docstring

undocumentedclj

(undocumented & handlers)

Routes without route-documentation. Can be used to wrap routes, not satisfying compojure.api.routes/Routing -protocol.

Routes without route-documentation. Can be used to wrap routes,
not satisfying compojure.api.routes/Routing -protocol.
sourceraw docstring

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

× close