/attentive-response

Content negotiation and encoding

Primary LanguageClojureEclipse Public License 1.0EPL-1.0

attentive-response

Clojars Project

This library provides Ring middleware attentive-response.core/wrap-attentive-response, which automatically encodes response if its body is a collection, depending on request header 'Accept'.

Currently supported content types are:

- application/json
- application/edn
- application/transit+json

where application/json is default.

License

Copyright © 2015 Ilshad Khabibullin.

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.