RFR: 8276559: (httpclient) Consider adding an HttpRequest.Builder.HEAD method to build a HEAD request. [v2]
Jaikiran Pai
jpai at openjdk.java.net
Fri Nov 12 11:27:33 UTC 2021
On Fri, 12 Nov 2021 10:27:50 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
> Maybe `test/jdk/java/net/httpclient/HeadTest.java` could acquire a new dedicated method where `HttpRequest.Builder.HEAD()` is used. The test currently tests `method("HEAD", BodyPublishers.noBody());`
I've updated the `HeadTest` to include request building with the convenience methods too. While I was at it, I noticed that test had unused imports and unused fields. I cleaned them up too in the updated PR. I hope that's OK.
Finally, I also noticed that I missed adding a `@bug` to these updated tests, so I went ahead and added them in my updated PR.
-------------
PR: https://git.openjdk.java.net/jdk/pull/6348
More information about the net-dev
mailing list