RFR: 8276559: (httpclient) Consider adding an HttpRequest.Builder.HEAD method to build a HEAD request.
Jaikiran Pai
jpai at openjdk.java.net
Fri Nov 12 11:24:57 UTC 2021
On Fri, 12 Nov 2021 10:54:20 GMT, Daniel Fuchs <dfuchs 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.
Understood. I have the habit of using the `public` too sometimes. It was the presence of `abstract` in one of the methods which made me a bit curious.
-------------
PR: https://git.openjdk.java.net/jdk/pull/6348
More information about the net-dev
mailing list