RFR: 8328919: Add BodyHandlers / BodySubscribers methods to handle excessive server input [v2]

Volkan Yazıcı duke at openjdk.org
Tue Jan 14 09:24:12 UTC 2025


On Tue, 14 Jan 2025 08:52:28 GMT, Chen Liang <liach at openjdk.org> wrote:

>> Volkan Yazıcı has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Add missing `@since` tags
>
> src/java.net.http/share/classes/java/net/http/HttpResponse.java line 760:
> 
>> 758:          * @param discardExcess if {@code true}, excessive input will be discarded; otherwise, it will throw an exception
>> 759:          * @throws IllegalArgumentException if {@code capacity < 0}
>> 760:          */
> 
> Suggestion:
> 
>          * @since 25
>          */
> 
> Same for the new factory in `BodySubscribers`.

Thanks @liach. Fixed in 3c9e4eae1e6e52405ee55802256e2ff6e2076363.

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

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


More information about the net-dev mailing list