Facilities to build an asynchronous handler, compatible with aleph, out of an interceptor chain.
This builds an opinionated chain with sane defaults, and a way to adapt the chain to the consumer's liking.
Processing of the chain is done by interceptor.
Facilities to build an asynchronous handler, compatible with aleph, out of an interceptor chain. This builds an opinionated chain with sane defaults, and a way to adapt the chain to the consumer's liking. Processing of the chain is done by [interceptor](https://github.com/exoscale/interceptor).
(build-chain config)
The default interceptor chain. doc/interceptor.md should be updated when this changes.
The default interceptor chain. doc/interceptor.md should be updated when this changes.
Fetch original request from a context
Fetch original request from a context
(ring-handler config)
(ring-handler definition handler)
(ring-handler definition handler config)
Build a ring handler from a configuration map, optionally takes the two required arguments: the API definition and handler function as arguments.
Yields a function of a single request argument which processes the chain and yields a final deferred ring response
Build a ring handler from a configuration map, optionally takes the two required arguments: the API definition and handler function as arguments. Yields a function of a single request argument which processes the chain and yields a final deferred ring response
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close