On Wed, 15 Jan 2025 15:00:37 GMT, Daniel Fuchs <dfu...@openjdk.org> wrote:

>> src/java.net.http/share/classes/java/net/http/HttpResponse.java line 757:
>> 
>>> 755:          * and passed to the given downstream {@code BodyHandler}}
>>> 756:          * <p>
>>> 757:          * If the number of bytes received exceeds the maximum number 
>>> of bytes
>> 
>> Although the `BodyHandlers` and `BodySubscribers` already note that they are 
>> applicable for reponse bodies, should we be adding any clarification in this 
>> new API, stating that the limit applies only to the body after the headers 
>> are read (however big those may be in bytes)?
>
> Maybe we could talk of "body bytes".

I think that's a good idea. It isn't too elaborate and yet conveys what this 
new method is meant for.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23096#discussion_r1916814616

Reply via email to