RFR: 8276559: (httpclient) Consider adding an HttpRequest.Builder.HEAD method to build a HEAD request.
Daniel Fuchs
dfuchs at openjdk.java.net
Fri Nov 12 10:57:32 UTC 2021
On Thu, 11 Nov 2021 12:05:49 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:
> P.S: Slightly unrelated question - is it intentional that the `Builder` interface specifies the visibility modifiers on the interface methods. For example: `public abstract Builder timeout(Duration duration);`, `public Builder headers(String... headers);` and so on?
Stylistic preference of the author - I guess (could be me). If this were a new class I would advise to remove the redundant qualifiers.
-------------
PR: https://git.openjdk.java.net/jdk/pull/6348
More information about the net-dev
mailing list