aleph

2019-10-02T04:26:37.010Z

when using the HTTP client how it seem to uncompress the body of the 200's but not of other statuses, how do I get around this?

2019-10-02T22:11:05.012700Z

I do this using the chain operator from manifold. e.g.

(d/chain (http/get "<http://some.service>" get-params)
  (fn [response]
     (if (ok? response)
        (inflate (:body response))
        (throw (ex-info "request failed" {})))))

2019-10-02T22:12:33.013900Z

This will give you a deferred. When you deref it, you'll get either the decompressed body or an exception will be thrown.