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

Async client for apache http 5 #1179

Merged
merged 1 commit into from Feb 28, 2020
Merged

Async client for apache http 5 #1179

merged 1 commit into from Feb 28, 2020

Conversation

velo
Copy link
Member

@velo velo commented Feb 27, 2020

@motinis in case you wanna see what I did based on your work

@velo velo requested a review from kdavisk6 February 27, 2020 05:27
Copy link
Contributor

@motinis motinis left a comment

Choose a reason for hiding this comment

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

Looks great, thank you! I've put in some suggestions there, mainly around HttpClientContext

hc5/src/main/java/feign/hc5/AsyncApacheHttp5Client.java Outdated Show resolved Hide resolved
hc5/src/main/java/feign/hc5/AsyncApacheHttp5Client.java Outdated Show resolved Hide resolved
}

protected HttpClientContext configureTimeouts(Request.Options options) {
final HttpClientContext context = new HttpClientContext();
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
final HttpClientContext context = new HttpClientContext();
final HttpClientContext context = requestContext.orElseGet(HttpClientContext::new)

Use the client supplied context, else make a new default just for this request.

hc5/src/main/java/feign/hc5/AsyncApacheHttp5Client.java Outdated Show resolved Hide resolved
hc5/src/main/java/feign/hc5/AsyncApacheHttp5Client.java Outdated Show resolved Hide resolved
Copy link
Member

@kdavisk6 kdavisk6 left a comment

Choose a reason for hiding this comment

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

@velo You have some changes here that aren't about the HC5 client, can we limit this PR to just the HC5 changes?

@kdavisk6 kdavisk6 added the enhancement For recommending new capabilities label Feb 28, 2020
@velo
Copy link
Member Author

velo commented Feb 28, 2020

@velo You have some changes here that aren't about the HC5 client, can we limit this PR to just the HC5 changes?

My bad, IDE automatically fixed stuff.

Only change required on feign core was make a few classes public so I could run the same tests on hc5

@velo velo requested a review from kdavisk6 February 28, 2020 07:03
@motinis
Copy link
Contributor

motinis commented Feb 28, 2020 via email

@kdavisk6 kdavisk6 added the ready to merge Will be merged if no other member ask for changes label Feb 28, 2020
@velo velo merged commit 6a343c7 into OpenFeign:master Feb 28, 2020
@velo velo deleted the async-hc5 branch February 28, 2020 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement For recommending new capabilities ready to merge Will be merged if no other member ask for changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants