8350279: HttpClient: Add a new HttpResponse method to identify connections#24154
8350279: HttpClient: Add a new HttpResponse method to identify connections#24154vy wants to merge 26 commits intoopenjdk:masterfrom
Conversation
|
👋 Welcome back vyazici! A progress list of the required criteria for merging this PR into |
|
@vy This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 407 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@dfuch, @jaikiran) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
Webrevs
|
test/jdk/java/net/httpclient/HttpResponseConnectionLabelTest.java
Outdated
Show resolved
Hide resolved
test/jdk/java/net/httpclient/HttpResponseConnectionLabelTest.java
Outdated
Show resolved
Hide resolved
src/java.net.http/share/classes/jdk/internal/net/http/HttpResponseImpl.java
Outdated
Show resolved
Hide resolved
src/java.net.http/share/classes/jdk/internal/net/http/HttpResponseImpl.java
Outdated
Show resolved
Hide resolved
src/java.net.http/share/classes/jdk/internal/net/http/HttpResponseImpl.java
Outdated
Show resolved
Hide resolved
src/java.net.http/share/classes/jdk/internal/net/http/HttpResponseImpl.java
Outdated
Show resolved
Hide resolved
|
/csr required |
|
This new API returns an
|
…nectionLabel` Co-authored-by: Daniel Fuchs <67001856+dfuch@users.noreply.github.com>
…nectionLabelTest`
|
/csr needed |
|
@vy has indicated that a compatibility and specification (CSR) request is needed for this pull request. @vy please create a CSR request for issue JDK-8350279 with the correct fix version. This pull request cannot be integrated until the CSR request is approved. |
No. If empty is returned you can make no assumptions. In practice this should never be null with our impl (except possibly in whitebox tests)
Yes. |
Should we specify this, like "The JDK built-in implementation of the {@code HttpClient} always assign a label to connections it create"? |
Good question - that would be an |
src/java.net.http/share/classes/jdk/internal/net/http/HttpConnection.java
Outdated
Show resolved
Hide resolved
test/jdk/java/net/httpclient/HttpResponseConnectionLabelTest.java
Outdated
Show resolved
Hide resolved
jaikiran
left a comment
There was a problem hiding this comment.
I don't have anything else. This looks good to me. Thank you for working on this enhancement and your patience during the review.
test/jdk/java/net/httpclient/HttpResponseConnectionLabelTest.java
Outdated
Show resolved
Hide resolved
test/jdk/java/net/httpclient/HttpResponseConnectionLabelTest.java
Outdated
Show resolved
Hide resolved
test/jdk/java/net/httpclient/HttpResponseConnectionLabelTest.java
Outdated
Show resolved
Hide resolved
|
/integrate |
|
/sponsor |
|
Going to push as commit 5fc18f5.
Your commit was automatically rebased without conflicts. |
Adds
HttpResponse::connectionLabelmethod that provides an identifier for the connection.Implementation note: The feature is facilitated by
HttpConnection::label, which should not be confused withHttpConnection::id. This distinction is explained in the JavaDoc of both properties.Progress
Issues
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/24154/head:pull/24154$ git checkout pull/24154Update a local copy of the PR:
$ git checkout pull/24154$ git pull https://git.openjdk.org/jdk.git pull/24154/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 24154View PR using the GUI difftool:
$ git pr show -t 24154Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/24154.diff
Using Webrev
Link to Webrev Comment