Both ring-json and ring-middleware-format tests have been ported to muuntaja to
verify behavior and demonstrate differences.
clojure.spec & Schema):type of :muuntaja/***, catch them elsewheremuuntaja.middleware/wrap-exception to catch 'em:body-params into :params
muuntaja.middleware/wrap-params to your mw-stack before muuntaja.middleware/wrap-format:json-params/:transit-params
:body stream after consuming the bodywrap-format (or wrap-request) middleware can be used in the same mw stack, first one acts, rest are no-op:muuntaja/encode? set)content-type from request headers (as defined in the RING Spec), not :content-type request keyContent-Length header (which is done by the ring-adapters):yaml-in-html / text/html is not supported, roll you own formats if you need these:yaml and :msgpack are not set on by defaultTODO
:body-params
:json-params/:transit-params, if you need these, write an extra interceptor for this.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 |