RFR: 8350279: HttpClient: Add a new HttpResponse method to identify connections [v4]

Daniel Fuchs dfuchs at openjdk.org
Thu Mar 27 13:55:17 UTC 2025


On Thu, 27 Mar 2025 12:45:07 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:

>> Volkan Yazici has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Improve JavaDoc
>
> src/java.net.http/share/classes/jdk/internal/net/http/HttpConnection.java line 121:
> 
>> 119:      * {@link HttpResponse#connectionLabel() HttpResponse::connectionLabel}}
>> 120:      */
>> 121:     public String label() {
> 
> Perhaps make this method `final`?

Maybe not. We could want to extend it to give an indication that the connection is TCP or TLS - or Quic in the future...

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24154#discussion_r2016718728


More information about the net-dev mailing list