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 builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close