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
slurp
the stream to get the String:json-params
/:transit-params
:body
stream after consuming the bodywrap-format
(or wrap-request
) middleware can be used in the same mw stack, only first one is effective, rest are no-opContent-Type
header set)
[:http :encode-response-body?]
option to (constantly true)
Content-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? These fine people already did:
Tommi Reiman & Martin KlepschEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close