Liking cljdoc? Tell your friends :D

bract.ring.inducer

Inducers provided in the bract.ring module.

Inducers provided in the bract.ring module.
raw docstring

apply-middlewaresclj

(apply-middlewares context middlewares)

Given a context with a Ring handler under context key :bract.ring/ring-handler apply the Ring middleware i.e. a seq of (fn [handler & args]) -> handler, finally updating the context with the wrapped handler.

Given a context with a Ring handler under context key `:bract.ring/ring-handler` apply the Ring middleware i.e.
a seq of `(fn [handler & args]) -> handler`, finally updating the context with the wrapped handler.
sourceraw docstring

apply-wrappersclj

(apply-wrappers context wrappers)

Given a context with a Ring handler under context key :bract.ring/ring-handler apply the Ring handler wrappers i.e. a seq of (fn [handler context]) -> handler, finally updating the context with the wrapped handler.

Given a context with a Ring handler under context key `:bract.ring/ring-handler` apply the Ring handler wrappers i.e.
a seq of `(fn [handler context]) -> handler`, finally updating the context with the wrapped handler.
sourceraw docstring

start-serverclj

(start-server context)
(start-server context starter-fn)
(start-server context starter-fn stopper-inducer)

Given a context with a Ring handler under context key :bract.ring/ring-handler start a web server (specified as argument or under the context key :bract.ring/server-starter) using server options available under context key :bract.ring/server-options and config key "bract.ring.server.options".

Given a context with a Ring handler under context key `:bract.ring/ring-handler` start a web server (specified as
argument or under the context key `:bract.ring/server-starter`) using server options available under context key
`:bract.ring/server-options` and config key `"bract.ring.server.options"`.
sourceraw docstring

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

× close