Discussion:
Output coercion like clj-http
David Smith
2015-02-25 13:12:47 UTC
Permalink
Has anyone done any work on this like `clj-http.client/coerce-content-type`
https://github.com/dakrone/clj-http/blob/master/src/clj_http/client.clj

I need to write some middleware that does different stuff depending on
whether a response is json or not and I also need middleware to decode this
json. Given that it's a fairly common scenario I thought someone might
already have done it?
--
You received this message because you are subscribed to the Google Groups "Aleph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aleph-lib+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
David Smith
2015-03-01 10:22:42 UTC
Permalink
For anyone who's interested, this is now in 0.4.0-SNAPSHOT
Post by David Smith
Has anyone done any work on this like `clj-http.client/coerce-content-type`
https://github.com/dakrone/clj-http/blob/master/src/clj_http/client.clj
I need to write some middleware that does different stuff depending on
whether a response is json or not and I also need middleware to decode this
json. Given that it's a fairly common scenario I thought someone might
already have done it?
--
You received this message because you are subscribed to the Google Groups "Aleph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aleph-lib+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...