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

Webclient redesign #7255

Merged
merged 21 commits into from
Jul 31, 2023
Merged

Conversation

tomas-langer
Copy link
Member

@tomas-langer tomas-langer commented Jul 27, 2023

WebClient redesign

Resolves:

Follow up issue: #7269

Notable changes:

  • single API that can run any HTTP version
  • upgrade done through HTTP/1.1 client always (implemented both for WebSocket and HTTP/2)
  • HTTP client SPI (HTTP/1.1 and HTTP/2 implementations)
  • Client SPI (websocket implementation)
  • Cookie manager support for HTTP/1.1 and HTTP/2
  • WebClientService support for HTTP/1.1 and HTTP/2
  • HttpClientResponse.request(Class) now returns a typed entity response, HttpClientResponse.requestEntity(Class) returns only the response entity (and throws if non-success status family)

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jul 27, 2023
@tomas-langer tomas-langer force-pushed the 6669-webclient-redesign branch from 7ed0999 to 33933c7 Compare July 28, 2023 11:37
@tomas-langer tomas-langer marked this pull request as ready for review July 28, 2023 11:37
Http2ClientProtocolConfig protocolConfig,
Http2ClientRequestImpl clientRequest,
CompletableFuture<WebClientServiceResponse> whenComplete,
Function<Http1ClientRequest, Http1ClientResponse> http1EntityHandler) {
Copy link
Member

Choose a reason for hiding this comment

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

nit: consistent CRLF's

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't understand your comment.

This was referenced Jul 31, 2023
Copy link
Member

@spericas spericas left a comment

Choose a reason for hiding this comment

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

Great improvement over previous API!

@tomas-langer tomas-langer mentioned this pull request Jul 31, 2023
@tomas-langer tomas-langer merged commit 39b644b into helidon-io:main Jul 31, 2023
@tomas-langer tomas-langer deleted the 6669-webclient-redesign branch July 31, 2023 19:31
@tomas-langer
Copy link
Member Author

Updated #7269 with unresolved comments from this PR (except for the inconsistent CR/LF as I cannot find what is wrong)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants