Skip to content
New issue

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

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

Already on GitHub? # to your account

Introduced CompletableResponseListener #10502

Merged
merged 3 commits into from
Sep 14, 2023

Conversation

sbordet
Copy link
Contributor

@sbordet sbordet commented Sep 12, 2023

CompletableResponseListener replaces FutureResponseListener, using better APIs based on CompletableFuture.
Deprecated FutureResponseListener and replaced its usages.
Updated documentation.
Added tests for zipped request content.

…nseListener that uses better APIs based on CompletableFuture.

Deprecated FutureResponseListener and replaced its usages.

Updated documentation.

Added tests for zipped request content.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
Copy link
Contributor

@gregw gregw left a comment

Choose a reason for hiding this comment

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

Mostly OK, just a couple of javadoc suggestions

Comment on lines 21 to 22
* <p>A {@link BufferingResponseListener} that takes care of sending
* the request, returning a {@link CompletableFuture} that is completed
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
* <p>A {@link BufferingResponseListener} that takes care of sending
* the request, returning a {@link CompletableFuture} that is completed
* <p>A {@link BufferingResponseListener} that sends a
* {@link Request} and returns a {@link CompletableFuture} that is completed

/**
* <p>A {@link BufferingResponseListener} that takes care of sending
* the request, returning a {@link CompletableFuture} that is completed
* when the request/response is completed.</p>
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
* when the request/response is completed.</p>
* when the {@link #onComplete(Result)} event method is called.</p>

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
@sbordet sbordet merged commit 8684b0a into jetty-12.0.x Sep 14, 2023
2 checks passed
@sbordet sbordet deleted the fix/jetty-12-completableresponselistener branch September 14, 2023 13:33
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants