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

Jetty 12 simplify EchoHandler #9783

Merged
merged 6 commits into from
May 18, 2023
Merged

Jetty 12 simplify EchoHandler #9783

merged 6 commits into from
May 18, 2023

Conversation

gregw
Copy link
Contributor

@gregw gregw commented May 17, 2023

Simplify EchoHandler to make it a better example Handler.

@gregw gregw requested review from sbordet and lorban May 17, 2023 12:37
case TRAILER -> response.setTrailersSupplier(HttpFields.build());
case TRANSFER_ENCODING -> contentLength = Long.MAX_VALUE;
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Quite harder to read, because now different concerns are in the same code blob.
-0 but I won't oppose too much.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

wow I find it so much easier to read as each concern is now only 1 or 2 lines and not spread over multiple blocks of code.

@gregw gregw requested a review from sbordet May 17, 2023 21:25
@gregw gregw merged commit 18c4846 into jetty-12.0.x May 18, 2023
@gregw gregw deleted the jetty-12-simplify-echo branch May 18, 2023 07:50
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