(as-de-exception-handler error-handler error-code)
Wraps a compojure-api exception handler function and performs the following tasks;
This function expects the error-handler to return a ring response with a ':errors' subkey in the response ':body'
Wraps a compojure-api exception handler function and performs the following tasks; - creates an exception map from the wrapped function's response - json encodes the exception map into the response body - adds json headers to response map This function expects the error-handler to return a ring response with a ':errors' subkey in the response ':body'
(default-error-handler response-fn error-code & [header-map])
Produces an error handler which generates exceptions with the given error-code and HTTP response function.
Produces an error handler which generates exceptions with the given error-code and HTTP response function.
(temporary-redirect-handler error error-type request)
Specialized exception handler for 302 responses. This could not be accomplished with the default exception handler because best practices for 302 responses is an empty response body.
Specialized exception handler for 302 responses. This could not be accomplished with the default exception handler because best practices for 302 responses is an empty response body.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close