title: How can I make an http call in clojure/ring?
body: <p>My web client (written in <code>cljs</code>) connects to backend (written in <code>clj</code>) which needs to make a few third party API calls. It has to be done on the server and then the result should be transformed in a specific way and sent back to the client.</p>
  
  <p>Here's my handler for one of the urls</p>
  
  <pre><code>(defn get-orders [req]
    (let [{:keys [sig uri]} (api-signature :get-orders)]
      (client/get uri
                  {:async? true}
                  (fn [response] {:body "something"})
                  (fn [exception] {:body "error"}))))
  </code></pre>
  
  <p>Instead of returning <code>{:body "something"}</code>, it is returning the following error:</p>
  
  <pre><code>No implementation of method: :render of protocol: #'compojure.response/Renderable found for class: org.apache.http.impl.nio.client.FutureWrapper
  </code></pre>
  
  <p>What am I doing wrong?</p>