On Wed, 1 May 2024 11:21:59 GMT, Mark Sheppard <mshep...@openjdk.org> wrote:
> sendResponseHeaderChunked The description implies that this method is sending > a chunked response, but the method is not doing that. ... I don't think it is implying that. The methods: OutputStream sendResponseHeadersChunked(int code); OutputStream sendResponseHeadersFixed(int code,long length); only inform the server of the response intent. The code must write to and close the provided OutputStream. The methods void sendResponseNoContent(int code); void sendResponse(int code,byte[] data); both close the exchange. No further writes are permitted. The "response headers" are not the "response or response content". ------------- PR Comment: https://git.openjdk.org/jdk/pull/18955#issuecomment-2088410098