treasure-data / td-client-java

Java Client Library for Treasure Data
http://docs.treasuredata.com/articles/java
Apache License 2.0
12 stars 22 forks source link

Use pure-java HTTP client instead of OkHttp? #250

Open exoego opened 1 year ago

exoego commented 1 year ago

OkHttp v4 is written in Kotlin. If we version up OkHttp to v4 or later, we need to depend on kotlin-stdlib transitively.

xerial commented 1 year ago

@exoego This can be a good approach to avoid dependency issues around okhttp and Kotlin. I've tested the pure-java HTTP client (available since Java9) at airframe-http and it works well out of the box https://github.com/wvlet/airframe/blob/master/airframe-http/.jvm/src/main/scala/wvlet/airframe/http/client/JavaHttpClientChannel.scala