How can I set a http proxy host and port for the ratpack.http.client.internal.DefaultHttpClient

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How can I set a http proxy host and port for the ratpack.http.client.internal.DefaultHttpClient

barisbasaran
Hi,

How can I set a http proxy host and port for the ratpack.http.client.internal.DefaultHttpClient?

System.setProperty("http.proxyHost", proxyHost)
System.setProperty("http.proxyPort", proxyPort)
don't work

Thanks

Baris
rus
Reply | Threaded
Open this post in threaded view
|

Re: How can I set a http proxy host and port for the ratpack.http.client.internal.DefaultHttpClient

rus
The Ratpack HTTP client is built on top of Netty and I don't think Netty supports this yet.  See the feature request here https://github.com/netty/netty/issues/1133

Although that does seem quite old and I don't see a comment from anyone in the Netty team.