Liking cljdoc? Tell your friends :D

monkey.mailman.interceptors

Event handler interceptors. This uses the Pedestal interceptor library under the hood. Most functions are really just wrappers around Pedestal functions.

Event handler interceptors.  This uses the Pedestal interceptor library
under the hood.  Most functions are really just wrappers around Pedestal
functions.
raw docstring

add-interceptorsclj

(add-interceptors ctx interceptors)

Adds the given interceptors to the context

Adds the given interceptors to the context
raw docstring

empty-contextclj


executeclj

Executes the interceptor chain with given context as argument.

Executes the interceptor chain with given context as argument.
raw docstring

handler-interceptorclj

(handler-interceptor handler)

Interceptor that invokes the handler with the context. Updates the context with the handler return value so it matches the handler-result spec.

Interceptor that invokes the handler with the context.  Updates the context
with the handler return value so it matches the `handler-result` spec.
raw docstring

interceptorclj

Converts its argument in an interceptor

Converts its argument in an interceptor
raw docstring

interceptor-handlerclj

(interceptor-handler interceptors)

Creates an event handler fn that uses the given interceptors as the interceptor chain. Executes the chain with the event set in the context.

Creates an event handler fn that uses the given interceptors as the interceptor
chain.  Executes the chain with the event set in the context.
raw docstring

make-contextclj

(make-context evt)

Creates an initial interceptor context for given event.

Creates an initial interceptor context for given event.
raw docstring

sanitize-resultclj

(sanitize-result & {:keys [event?] :or {event? s/event?}})

set-eventclj

(set-event ctx evt)

Sets the event on the context

Sets the event on the context
raw docstring

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

× close