Pedestal is a well known interceptor-based web framework for Clojure. To use reitit-http with Pedestal, we need to change the default routing interceptor into a new one. Examples projects show how to do this.
reitit-http defines Interceptors as reitit.interceptor/Interceptor. Compared to Pedestal 2-arity error handlers, reitit uses a simplified (1-arity) handlers. Differences in error handling are described in the Sieppari README.
:error-stage defined:error defined will cause ArityException if invokedSee the error handling guide on how to handle errors with Pedestal.
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |