jabrena / amadeus-java

Java library for the Amadeus Self-Service travel APIs
https://developers.amadeus.com/
MIT License
0 stars 0 forks source link

Comparison of Java HTTP Clients #2

Open jabrena opened 2 years ago

jabrena commented 2 years ago
jabrena commented 2 years ago
jabrena commented 2 years ago
CloseableHttpResponse response = httpClient.execute(httpPost);
jabrena commented 2 years ago
OkHttpClient client = new OkHttpClient.Builder()
            .readTimeout(1000, TimeUnit.MILLISECONDS)
            .writeTimeout(1000, TimeUnit.MILLISECONDS)
            .build();

The OkHttp 3.12.x branch supports Android 2.3+ (API level 9+) and Java 7+. These platforms lack support for TLS 1.2 and should not be used. But because upgrading is difficult, we will backport critical fixes to the 3.12.x branch through December 31, 2021.

jabrena commented 2 years ago