RFR: 8331195: Improve com.sun.net.httpserver.HttpExchange usability [v3]

Daniel Fuchs dfuchs at openjdk.org
Wed May 1 13:08:53 UTC 2024


On Wed, 1 May 2024 12:40:52 GMT, robert engels <duke at openjdk.org> wrote:

> OutputStream sendResponseHeadersChunked(int code);
> OutputStream sendResponseHeadersFixed(int code,long length);

I still think that these methods should either return `void` or be renamed, though I have been struggling to find a name that exactly convey what they do... `getOutputStreamChunked` and `getOutputStreamFixed` come to mind, but are not great either. Maybe the lesser of the two evil would be to return `void`.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/18955#issuecomment-2088436306


More information about the net-dev mailing list