enonic / lib-http-client

Http Client Library for Enonic XP.
Apache License 2.0
0 stars 4 forks source link

Switch to Java 11 HttpClient #89

Closed rymsha closed 2 years ago

rymsha commented 2 years ago

Currently lib-httpclient uses OkHttpClient. There are a few problems with it:

Is we switch to Java 11 HttpClient we don't need to bundle Kotlin lib, nor any additional classes - as they are part of JDK. It will lead to faster builds and smaller artifacts.

It is a "major version" change and we can take a chance to change the API so it does not require us to create a new connection every time. (connectTimeout, certificates and clientCertificate are connection related)

sigdestad commented 2 years ago

+1 on this. 30MB 30second build time sux

rymsha commented 2 years ago