On Fri, 8 Apr 2022 09:35:31 GMT, Jaikiran Pai <j...@openjdk.org> wrote:
> This is unlike other methods, for example DELETE() where the body publisher > itself is null. In the case of HEAD the body publisher is present but it > still represents that there's no body to that request. Please disregard this part of the comment. As you and Daniel rightly noted in a private conversation, the `HttpRequestBuilderImpl` overrides the `HEAD()` method to set `null` to the body publisher. ------------- PR: https://git.openjdk.java.net/jdk/pull/8017