I updated my okhttp to okhttp3 because of vulnerability issue, but the class OkHttpClient doesn't have setProxy now. What should I do? Should I rewrite the code with new one?
Thanks.
It seems that in okhttp3, it's using proxy() for the OkHttpClient.Builder. proxy() has the same documentation as setProxy() in older okhttp.
Here are some examples using proxy().
Related
I would like to know information about HTTP v3 support in okhttp.
Someone knows when or if it will support the new HTTP version?
I see it would use injestors for this, but I haven't found anything updated about that.
Thanks.
You can use a bridging interceptor like https://github.com/google/cronet-transport-for-okhttp/blob/master/README.md
There are no plans for HTTP/3 support implemented in Kotlin inside of OkHttp. See https://github.com/square/okhttp/issues/907
I have headed into an issue with losing the grpc context while using the reactive rest-client for downstream calls. Im unsure if it is my implementation or a bug related to grpc context. It seems to be similar to: https://github.com/quarkusio/quarkus/issues/13959, but according to comment that should be fixed.
Anyway the grpc context seems to be lost when a call is made downstream with the rest-client. I have setup a reproducer repo: https://github.com/AnteLund/grpc-context-lost-reproducer which has some tests to show the issue.
Any ideas?
It was a bug. It got fixed in Quarkus 2.8 (maybe even 2.7). The context was lost during the REST client call. Now, the context is preserved between the two calls.
I am using Elasticsearch v7.10, and in the javadoc, is the following interface
org.elasticsearch.client.Client
but not the following two classes:
org.elasticsearch.client.RestClient
org.elasticsearch.client.RestHighLevelClient
I am not looking for descriptions of what these classes do, but only want to know whether or not RestClient and RestHighLevelClient have been deprecated in v7.10 (current version)?
Thanks
For people also searching for this, please be aware that at the time of writing the RestHighLevelClient seems to be deprecated. From the documentation this class became deprecated in favor of the Elasticsearch Java API Client
I am trying to upgrade spring boot and it looks like reactor-netty have removed reactor.ipc package with all it's classes.
I am trying to find a document/pointers which can help me understand what is the new equivalent for reactor.ipc package.
I looked at: https://github.com/reactor/reactor-netty/releases for what's new section for 0.8.0 release(which actually removed these classes/package), but there is no link available.
I would appreciate if there is a doc or some note which can help in the transition for 0.7.x to 0.8.x release.
I've been checking out batoo JPA lately. I've managed to use it with Spring and it seems to work good with the standard JPA interface. Now I'm looking how to get JodaTime to get persisted transparently.
I know that I can write a converter but I was wondering if maybe guys from the batoo team done some work on this. I've cloned the source and grep-ed it through but with no luck.
Thank you for pointing out the issue.
As stated in the issue manager a snapshot has been released that should fix the issue.