I'm trying to configure async http client to use SOCKS proxy. Here is the answer for sync http client. I don't know how to set ConnectionSocketFactory
to async http client. Is it possible?
Asked
Active
Viewed 210 times
0

anton
- 675
- 6
- 16
1 Answers
0
It turns out it's even easier than in sync http client:
HttpAsyncClients.custom()
.setIOReactorConfig(
IOReactorConfig.custom()
.setSocksProxyAddress(InetSocketAddress("mysockshost", 1234))
.build()
)
.build()

anton
- 675
- 6
- 16