On Fri, 12 Nov 2021 10:27:50 GMT, Daniel Fuchs <dfu...@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