RFR: 8368955: Improve HttpExchange.sendResponseHeaders usability
Jaikiran Pai
jpai at openjdk.org
Fri Oct 3 04:55:45 UTC 2025
On Thu, 2 Oct 2025 20:06:14 GMT, Josiah Noel <duke at openjdk.org> wrote:
> As specified in [JDK-8368955](https://bugs.openjdk.org/browse/JDK-8368955?jql=project%20in%20(JDK)%20AND%20component%20in%20(core-libs)%20AND%20Subcomponent%20in%20(java.net)), adds some constants to HttpExchange to make `sendResponseHeaders` more usable.
src/jdk.httpserver/share/classes/com/sun/net/httpserver/HttpExchange.java line 80:
> 78:
> 79: /**
> 80: * The response body is unspecified and will be chunk encoded
Nit - maybe reword this as "The response body will be chunk encoded" and remove any mention of unspecified?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27613#discussion_r2400778737
More information about the net-dev
mailing list