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 highligting
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close