Helpers to define request handlers
Helpers to define request handlers
(def-async sym-name [request] & body)Creates a pedestal interceptor from something that looks like a handler function. Should return channel with the response inside.
Example: (def-async [request] (go {:status 200 :body (:body request)}))
For intelliJ use 'resolve as defn' to add proper support for highligting
Creates a pedestal interceptor from something that looks like a handler function.
Should return channel with the response inside.
Example:
(def-async [request]
(go {:status 200 :body (:body request)}))
For intelliJ use 'resolve as defn' to add proper support for highligtingcljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |