On Wed, 5 Nov 2025 15:17:35 GMT, Michael McMahon <[email protected]> wrote:

>> I'd like to return to this issue with a new PR that addresses the usability 
>> issue minimally. Namely to define numeric constants
>> for the counter-intuitive responseLength values in 
>> `HttpExchange.sendResponseHeaders`. The apidoc then refers to the constant 
>> names rather than the numeric values.
>> 
>> I've updated the implementation and some tests (though not all yet) to use 
>> the constant names. I'm open to suggestions on the names themselves. Once 
>> that is agreed, I'll update the remaining tests and any other call sites in 
>> the implementation.
>> 
>> Thanks,
>> Michael
>
> Michael McMahon has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   update

> I think it makes the API very slightly better, but in a way that would 
> detract from future attempts to make the API holistically better to use.

Seriously consider that if we had member patterns would we add this API? If the 
answer is no (and I think it is no) lets just not do it

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

PR Comment: https://git.openjdk.org/jdk/pull/28132#issuecomment-3492076083

Reply via email to