metosin / muuntaja

Clojure library for fast http api format negotiation, encoding and decoding.
https://cljdoc.org/d/metosin/muuntaja
Eclipse Public License 2.0
449 stars 51 forks source link

Muuntaja client support #101

Open hkupty opened 5 years ago

hkupty commented 5 years ago

Hi,

First of all, thank for muuntaja and the nice ecosystem around HTTP.

I've been experimenting using reitit on top of aleph and, as a consequence, started using aleph also for http client. As aleph only tries to decode the body if the project contains cheshire and muuntaja is already part of the dependencies, I'd like to use it on top the http client to be able to parse the response body according to the content-type.

As I might use either json or transit+json, I think delegating the content type discovery and parsing to muuntaja would make more sense than having that on my end.

What do you think? Is that feasible (as in a desirable feature for muuntaja)?

chrisbetz commented 4 years ago

Hi all, I'm working on that to be used with hato. One problem I stumbled upon is #99.

ikitommi commented 4 years ago

Awesome, been looking for this.