Liking cljdoc? Tell your friends :D

sturdy.middleware.request-size


*render-too-large*clj

Dynamic hook to render the response body when a request is rejected for size.

Must return either:

  • a Ring response map, OR
  • a body (string / bytes / stream), in which case this middleware will wrap it into a Ring response.

Rebind with binding (or alter-var-root) in your app to integrate with your site-wide error pages.

Dynamic hook to render the response body when a request is rejected for size.

Must return either:
- a Ring response map, OR
- a body (string / bytes / stream), in which case this middleware will wrap it
  into a Ring response.

Rebind with `binding` (or `alter-var-root`) in your app to integrate with your
site-wide error pages.
sourceraw docstring

too-large-responseclj

(too-large-response request max-upload-bytes)
source

wrap-max-request-sizeclj

(wrap-max-request-size handler max-upload-bytes)
source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close