RFR: 8331195: Improve com.sun.net.httpserver.HttpExchange usability [v3]
robert engels
duke at openjdk.org
Wed May 1 13:28:55 UTC 2024
On Wed, 1 May 2024 13:13:44 GMT, Bernd <duke at openjdk.org> wrote:
> 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?
Those are workable able - especially since sendResponseHeadersxxxxx doesn't actually send the headers (maybe) for performance reasons (avoid small packets).
I might prefer ```OS beginChunkedResponse()``` and ```OS beginFixedResponse()```.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/18955#issuecomment-2088462582
More information about the net-dev
mailing list