Skip to content

Async client for apache http 5#1179

Merged
velo merged 1 commit into
OpenFeign:masterfrom
velo:async-hc5
Feb 28, 2020
Merged

Async client for apache http 5#1179
velo merged 1 commit into
OpenFeign:masterfrom
velo:async-hc5

Conversation

@velo

@velo velo commented Feb 27, 2020

Copy link
Copy Markdown
Member

@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

@motinis motinis left a comment

Copy link
Copy Markdown
Contributor

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

Comment thread hc5/src/main/java/feign/hc5/AsyncApacheHttp5Client.java Outdated
Comment thread hc5/src/main/java/feign/hc5/AsyncApacheHttp5Client.java Outdated
}

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

Copy link
Copy Markdown
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.

Comment thread hc5/src/main/java/feign/hc5/AsyncApacheHttp5Client.java Outdated
Comment thread hc5/src/main/java/feign/hc5/AsyncApacheHttp5Client.java Outdated

@kdavisk6 kdavisk6 left a comment

Copy link
Copy Markdown
Member

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

velo commented Feb 28, 2020

Copy link
Copy Markdown
Member Author

@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

motinis commented Feb 28, 2020 via email

Copy link
Copy Markdown
Contributor

@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
velo added a commit that referenced this pull request Oct 7, 2024
velo added a commit that referenced this pull request Oct 8, 2024
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.

3 participants