Skip to content

Comments

Jetty 12 simplify EchoHandler#9783

Merged
gregw merged 6 commits intojetty-12.0.xfrom
jetty-12-simplify-echo
May 18, 2023
Merged

Jetty 12 simplify EchoHandler#9783
gregw merged 6 commits intojetty-12.0.xfrom
jetty-12-simplify-echo

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 lorban and sbordet 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