Liking cljdoc? Tell your friends :D

bract.ring.dev

Development support for bract.ring module.

Development support for bract.ring module.
raw docstring

handlerclj

source

http-methodclj

source

http-statusclj

source

init!clj

(init!)
(init! context)

Initialize environment and the Ring handler.

Initialize environment and the Ring handler.
sourceraw docstring

init-once!clj

(init-once!)
(init-once! a-var)

Given a var e.g. (defonce a-var nil) having logical false value, set it to true and initialize app in DEV mode, finally updating the bract.ring.dev/handler var.

Given a var e.g. `(defonce a-var nil)` having logical false value, set it to `true` and initialize app in DEV mode,
finally updating the [[bract.ring.dev/handler]] var.
sourceraw docstring

log-exceptionclj

(log-exception request exception duration-millis)

Log Ring request processing exception. See: bract.ring.middleware/traffic-log-middleware, bract.ring.wrapper/traffic-log-wrapper

Log Ring request processing exception.
See: `bract.ring.middleware/traffic-log-middleware`, `bract.ring.wrapper/traffic-log-wrapper`
sourceraw docstring

log-outcomeclj

(log-outcome request outcome-string duration-millis)

Common function to log response and exception. See: log-response, log-exception

Common function to log response and exception.
See: [[log-response]], [[log-exception]]
sourceraw docstring

log-requestclj

(log-request request)

Log Ring request. See: bract.ring.middleware/traffic-log-middleware, bract.ring.wrapper/traffic-log-wrapper

Log Ring request.
See: `bract.ring.middleware/traffic-log-middleware`, `bract.ring.wrapper/traffic-log-wrapper`
sourceraw docstring

log-responseclj

(log-response request response duration-millis)

Log Ring response. See: bract.ring.middleware/traffic-log-middleware, bract.ring.wrapper/traffic-log-wrapper

Log Ring response.
See: `bract.ring.middleware/traffic-log-middleware`, `bract.ring.wrapper/traffic-log-wrapper`
sourceraw docstring

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

× close