On Wed, 1 May 2024 15:10:22 GMT, Mark Sheppard <mshep...@openjdk.org> wrote:

> It is not sending a chunked response, nor is it setting the Transfer-Encoding 
> header to chunked for a chunked response

The javadoc was just a starting point - the method name is pretty clear imo 
opinion what it does - but there are other possibilities.

But on the point above you are not correct. If you follow the code path, you 
will see that setting a length of 0 - which is what that method defers to - 
will cause a chunked response to be sent - when it is written to the 
OutputStream. I am not even sure if you set the transfer-encoding manually that 
it would work - you still need a "send response headers with a length of 0".

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

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

Reply via email to