On Tue, 4 Nov 2025 14:10:14 GMT, Michael McMahon <[email protected]> wrote:
> I'd like to return to this issue with a new PR that addresses the usability > issue minimally. Namely to define numeric constants > for the counter-intuitive responseLength values in > `HttpExchange.sendResponseHeaders`. The apidoc then refers to the constant > names rather than the numeric values. > > I've updated the implementation and some tests (though not all yet) to use > the constant names. I'm open to suggestions on the names themselves. Once > that is agreed, I'll update the remaining tests and any other call sites in > the implementation. > > Thanks, > Michael This pull request has now been integrated. Changeset: 1877ff99 Author: Michael McMahon <[email protected]> URL: https://git.openjdk.org/jdk/commit/1877ff996b67849205fd6cde1285461c4db1b359 Stats: 213 lines in 48 files changed: 84 ins; 3 del; 126 mod 8331195: Improve com.sun.net.httpserver.HttpExchange usability Reviewed-by: jpai, dfuchs ------------- PR: https://git.openjdk.org/jdk/pull/28132
