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.
(add-interceptors ctx interceptors)
Adds the given interceptors to the context
Adds the given interceptors to the context
Executes the interceptor chain with given context as argument.
Executes the interceptor chain with given context as argument.
(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.
Converts its argument in an interceptor
Converts its argument in an interceptor
(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.
(make-context evt)
Creates an initial interceptor context for given event.
Creates an initial interceptor context for given event.
(sanitize-result & {:keys [event?] :or {event? s/event?}})
(set-event ctx evt)
Sets the event on the context
Sets the event on the context
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close