Discussion:
Shall I write my project in HC5 or HC4?
/
2018-05-16 14:04:18 UTC
Permalink
Hi there,

My main requirement is that I do not have to change a lot of code when
the HC5 becomes stable.

So, if I am writing software to live for the next 3 years should I use
already existing HC4 or try HC5-beta. In fact I already started playing
with HC5 but I can't find a lot of examples - even for as a simple thing
as printing the response content or changing timeout settings?

bw,
a.

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-***@hc.apache.org
For additional commands, e-mail: httpclient-users-***@hc.apache.org
Oleg Kalnichevski
2018-05-16 14:13:40 UTC
Permalink
Post by /
Hi there,
My main requirement is that I do not have to change a lot of code
when 
the HC5 becomes stable.
So, if I am writing software to live for the next 3 years should I
use 
already existing HC4 or try HC5-beta. In fact I already started
playing 
with HC5 but I can't find a lot of examples - even for as a simple
thing 
as printing the response content or changing timeout settings?
While documentation for HC5 is still virtually non-existent there
should be quite a few examples already.

https://github.com/apache/httpcomponents-client/tree/master/httpclient5
/src/examples/org/apache/hc/client5/http/examples

If you need HTTP/2 transport today HC5 should be a better choice,
otherwise stick to HC4 for now.


Oleg


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-***@hc.apache.org
For additional commands, e-mail: httpclient-users-***@hc.apache.org
/
2018-05-16 14:18:31 UTC
Permalink
many thanks for your advice!
Post by Oleg Kalnichevski
Post by /
Hi there,
My main requirement is that I do not have to change a lot of code when
the HC5 becomes stable.
So, if I am writing software to live for the next 3 years should I use
already existing HC4 or try HC5-beta. In fact I already started playing
with HC5 but I can't find a lot of examples - even for as a simple thing
as printing the response content or changing timeout settings?
While documentation for HC5 is still virtually non-existent there
should be quite a few examples already.
https://github.com/apache/httpcomponents-client/tree/master/httpclient5
/src/examples/org/apache/hc/client5/http/examples
If you need HTTP/2 transport today HC5 should be a better choice,
otherwise stick to HC4 for now.
Oleg
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-***@hc.apache.org
For additional commands, e-mail: httpclient-users-***@hc.apache.org
Loading...