yada interceptor chain minimal example
code:clojure
(let [body (:body @((yada.handler/as-handler
(yada.yada/resource
{:interceptor-chain [(fn _ (throw (ex-info "i hate u" {})))]} ))
{}))
buf (byte-array (.remaining body))]
(.get body buf)
(slurp buf))