Liking cljdoc? Tell your friends :D
Clojure only.

cutty-sark.handler

Helpers to define request handlers

Helpers to define request handlers
raw docstring

def-asynccljmacro

(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
sourceraw docstring

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

× close