Support apache http client engine using httpclient5 #4555
Replies: 1 comment 6 replies
-
Hello @tatsiana-skurydzina-rovio, By "httpclient5", do you mean the Apache HTTP Client 5.x? If so, RESTEasy itself does not have an implementation for that. With 6.2.12.Final and 7.0.0.Beta1, we better expose an API for creating custom engines. What I think we should be doing is creating these client engines as separate projects so we can independently update them. Then you simply need to include the one you want on the class path. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey.
I have been working with a project that relies on httpclient 5 specific logic and at the same time using pooling http client for http engine
After update to resteasy 6.2.12.Final, I figured out that there is a lot of deprecated classes without any alternatives, e.g. URLConnectionEngine doesn't allow to configure connection pooling anyhow.
I tried to use even 7.0.0+ Alpha/beta versions but they also contain only deprecated classes. I can see only one alternative for now for myself to provide own ApacheHttpClient5Engine implementation similar to ApacheHttpClient43Engine
Could someone suggest better ideas how is it supposed to be done?
Beta Was this translation helpful? Give feedback.
All reactions