an idiomatic Clojure HTTP client wrapping the Apache client
Questions tagged [clj-http]
34 questions
0
votes
1 answer
How can I make an http call in clojure/ring?
My web client (written in cljs) connects to backend (written in clj) 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.
Here's my…

Bravi
- 713
- 2
- 8
- 29
0
votes
1 answer
how to specify http or https proxy in clj-http in clojure
In this url, it shows how to use proxy in clj-http
https://github.com/dakrone/clj-http
(client/get "http://foo.com" {:proxy-host "127.0.0.1" :proxy-port 8118})
But since we could have http proxy or https proxy, how to specify http or https? or it's…

Daniel Wu
- 5,853
- 12
- 42
- 93
0
votes
1 answer
Unable to resolve clj-http
I want to use clj-http, so I created a project with lein with these dependencies in project.clj:
(defproject app "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:main app.core
:url "http://example.com/FIXME"
:license {:name "Eclipse Public…

Guillaume Badi
- 749
- 5
- 15
-1
votes
1 answer
clj-http returns status 200 but cljs-http client returns status 0 for the same request
I make a request like so using clj-http.client
(http/get "https://www.example.com/bar")
and get a response with status 200.
However, when I make the same request with cljs-http.client like so:
(go (let [response (

zengod
- 1,114
- 13
- 26