JEP 321: HTTP Client (Standard)
David Lloyd
david.lloyd at redhat.com
Thu Dec 7 13:14:53 UTC 2017
On Thu, Dec 7, 2017 at 5:53 AM, Alan Bateman <Alan.Bateman at oracle.com> wrote:
> This thread is getting a little off-topic but...
Getting it back on topic again:
> Proposal for the standard module name: java.net.httpclient. Proposal for the standard package name: java.net.http.
I think it would be better if both the module and the package were
"java.net.http.client", for two reasons. Firstly, it is important to
align the package and module name whenever possible; I don't think
there's a compelling reason here (or most anywhere else) not to do so.
Secondly, it is not unreasonable to expect that the future may bring
other HTTP-related APIs that are not necessarily client-specific.
Relatedly, it may be wise to rename "HttpRequest" and "HttpResponse"
to "HttpClientRequest" and "HttpClientResponse", respectively.
--
- DML
More information about the net-dev
mailing list