Liking cljdoc? Tell your friends :D

calfpath.core


->deletecljmacro

(->delete request expr)
(->delete request expr default-expr)
source

->getcljmacro

(->get request expr)
(->get request expr default-expr)
source

->headcljmacro

(->head request expr)
(->head request expr default-expr)
source

->methodcljmacro

(->method request & clauses)

Like clojure.core/case except that the first argument must be a request map. Odd numbered clauses imply the last argument is the default expression invoked on no-match. Even numbered clauses return HTTP 405 (method not supported) by default on no-match. The dispatch happens in constant time.

Like clojure.core/case except that the first argument must be a request map. Odd numbered clauses imply the last
argument is the default expression invoked on no-match. Even numbered clauses return HTTP 405 (method not supported)
by default on no-match. The dispatch happens in constant time.
sourceraw docstring

->optionscljmacro

(->options request expr)
(->options request expr default-expr)
source

->patchcljmacro

(->patch request expr)
(->patch request expr default-expr)
source

->postcljmacro

(->post request expr)
(->post request expr default-expr)
source

->putcljmacro

(->put request expr)
(->put request expr default-expr)
source

->uricljmacro

(->uri request & clauses)

Given a ring request map and pairs of URI-templates (e.g. '/user/:id/profile/:type/') and expression clauses, evaluate matching expression after adding URI params as a map to the :params key in the request map. Odd numbered clauses imply the last argument is the default expression invoked on no-match. Even numbered clauses return HTTP 400 by default on no-match. The dispatch happens in linear time based on URI length and number of clauses.

Given a ring request map and pairs of URI-templates (e.g. '/user/:id/profile/:type/') and expression clauses,
evaluate matching expression after adding URI params as a map to the :params key in the request map. Odd numbered
clauses imply the last argument is the default expression invoked on no-match. Even numbered clauses return HTTP 400
by default on no-match. The dispatch happens in linear time based on URI length and number of clauses.
sourceraw docstring

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

× close