Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenFeign Builder default client

What is the default Client used by Openfeign Builder.

OkHttp client

Feign.builder().client(new feign.okhttp.OkHttpClient()).target(SomeData.class,"http://test.com");

What is the default client?

Feign.builder().target(SomeData.class,"http://test.com");
like image 492
Sarav Avatar asked Sep 17 '25 00:09

Sarav


1 Answers

If it's still relevant for you:

If you look at the source code of Feign.Builder, you'd see that it uses Client.Default unless otherwise specified.

Client.Default is actually a good old Java HTTP Client from java.net package.

If you're not familiar with it, you can read about it in docs.

like image 181
amseager Avatar answered Sep 19 '25 16:09

amseager