RFR: 8331195: Improve com.sun.net.httpserver.HttpExchange usability [v3]
robert engels
duke at openjdk.org
Tue Apr 30 16:32:04 UTC 2024
On Tue, 30 Apr 2024 16:04:25 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
>> The purpose was that if you state you are sending a chunked response, you must close the output stream. By returning it - the linter will catch that it is closed, or used in a try-with-resources.
>
> I understand - but in this case we need a different (better?) name.
I suggested
OutputStream sendResponseChunked(int code)
in the other related comment.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/18955#discussion_r1585166278
More information about the net-dev
mailing list