Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add async behavior to OkHttpClient #1629

Merged
merged 5 commits into from
Jun 13, 2022
Merged

Add async behavior to OkHttpClient #1629

merged 5 commits into from
Jun 13, 2022

Conversation

joelmarty
Copy link
Contributor

@joelmarty joelmarty commented Jun 9, 2022

Make OkHttpClient implement AsyncClient.

Changes

Modified

  • Make OkHttpClient implement AsyncClient. The implementation does not handle requestContext.
  • List OkHttp as async client in mindmap

Added

  • OkHttpClientAsyncTest: Test class is a copypasta of other async client tests, please advise for a better solution.

import feign.Client;
import feign.Request.HttpMethod;
import feign.Request.ProtocolVersion;
import okhttp3.*;
import org.jetbrains.annotations.NotNull;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure what is that, but please remove it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some annotations IntelliJ added when generating the interface implementation. I removed it :)

@joelmarty
Copy link
Contributor Author

@velo What is the release process for Feign ? Will this change trigger a new release or is there a planned date to release that and other improvements ?

@velo velo merged commit fdc7bc2 into OpenFeign:master Jun 13, 2022
@velo
Copy link
Member

velo commented Jun 13, 2022

@velo What is the release process for Feign ? Will this change trigger a new release or is there a planned date to release that and other improvements ?

releases are pretty much mood driven =)

Every time an exciting thing is merged, it triggers me to make a release. I will create one for this

@joelmarty joelmarty deleted the okhttp-async branch June 14, 2022 08:08
@joelmarty
Copy link
Contributor Author

Hey @velo , I noticed there is still no release. Don't want to harass you but that would really be great if you could cut one :)

@velo
Copy link
Member

velo commented Jun 23, 2022

sorry, was trying to squeeze Async capabilities into this release

@velo
Copy link
Member

velo commented Jun 23, 2022

release process triggered, next hour or so should see the binaries on central

velo pushed a commit that referenced this pull request Oct 7, 2024
* Add AsyncOkHttpClient implementation

* Make OkHttpClient implement both Client and AsyncClient

Removes the need to share code in an abstract class.

* Update mindmap

* Update CHANGELOG.md

* Remove jetbrains specific annotations
velo pushed a commit that referenced this pull request Oct 8, 2024
* Add AsyncOkHttpClient implementation

* Make OkHttpClient implement both Client and AsyncClient

Removes the need to share code in an abstract class.

* Update mindmap

* Update CHANGELOG.md

* Remove jetbrains specific annotations
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