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

Bernd duke at openjdk.org
Wed May 1 13:15:52 UTC 2024


On Fri, 26 Apr 2024 15:37:13 GMT, robert engels <duke at openjdk.org> wrote:

>> improve the HttpExchange api with documented constants and convenience methods to avoid common bugs
>
> robert engels has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Update src/jdk.httpserver/share/classes/com/sun/net/httpserver/HttpExchange.java
>   
>   Co-authored-by: Michael McMahon <70538289+Michael-Mc-Mahon at users.noreply.github.com>

I agree that the sendResponse(NoContent) methods are good.

I don’t think the “Headers” is particular clear - maybe “OS startChunkedResponse(int)” (but only if it actually encodes it chunked) and “OS startResponse(int status, long length)” instead?

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

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


More information about the net-dev mailing list