http proxy configuration
Closed this issue · 1 comments
matteoredaelli commented
Hello, how / where can I configure an http proxy?
I tried
(http/get url
{:headers {"Accept" "application/json"
"Authorization" (-> context :headers :Authorization)}
:client (http/client {:proxy {:proxyHost "proxyzscaler.mycompany.com" :proxyPort 80}})}
but I get
--- clojure.lang.PersistentArrayMap cannot be cast to java.net.ProxySelector
Many thanks
Matteo
borkdude commented
Hi @matteoredaelli, I think you can pass:
(java.net.ProxySelector/of (java.net.InetSocketAddress. "https://foobar.net" 8080))
to the :proxy
value, but we should definitely make this easier.