Skip to content

[Java][Feign] added 'feignHttpClient' configOption and support for ap…#5715

Closed
gaetPax wants to merge 5 commits intoOpenAPITools:masterfrom
gaetPax:req-5709/allow-selection-of-feign-http-client
Closed

[Java][Feign] added 'feignHttpClient' configOption and support for ap…#5715
gaetPax wants to merge 5 commits intoOpenAPITools:masterfrom
gaetPax:req-5709/allow-selection-of-feign-http-client

Conversation

@gaetPax
Copy link
Contributor

@gaetPax gaetPax commented Mar 26, 2020

#5709
Added 'feignHttpClient' configOption and support for apache feign httpClient.
Support for other feign httpClient modules can be easily added with same option.

@wing328
Copy link
Member

wing328 commented Apr 29, 2020

@wing328
Copy link
Member

wing328 commented Aug 5, 2020

@gaetPax as discussed, please resolve the merge conflicts when you've time. Then we'll review and merge this PR accordingly.

@wing328
Copy link
Member

wing328 commented Nov 9, 2020

@gaetPax may I know if you've time to resolve the merge conflicts so that we can include this change in the upcoming 5.0.0-beta3 release?

@gaetPax
Copy link
Contributor Author

gaetPax commented Nov 9, 2020

Hi @wing328 , I will try to do it today

# Conflicts:
#	modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaClientCodegen.java
#	modules/openapi-generator/src/main/resources/Java/libraries/feign/build.sbt.mustache
# Conflicts:
#	modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaClientCodegen.java
#	modules/openapi-generator/src/main/resources/Java/libraries/feign/build.gradle.mustache
#	modules/openapi-generator/src/main/resources/Java/libraries/feign/build.sbt.mustache
#	modules/openapi-generator/src/main/resources/Java/libraries/feign/pom.mustache
@wing328
Copy link
Member

wing328 commented Jan 25, 2021

@gaetPax can you please resolve merge conflicts when you've time? Then please notify me via email in my Github profile to have it reviewed sooner. Thank you.

@gaetPax
Copy link
Contributor Author

gaetPax commented Jan 28, 2021

Support to better HttpClient has been added by #8484 which sets OkHttp as the default feign client, which should be the most complete one (even better than ApacheHttpClient) and capable to handle most of the use cases.
[Comparison here: https://www.mocklab.io/blog/which-java-http-client-should-i-use-in-2020/]
So adding the choice of select the HttpClient implementation could be really not necessary and just adding complexity to the source code. Closing the PR.

@gaetPax gaetPax closed this Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants