RFR: 8327796: Add method to java.net.http.HttpRequest to return a GET request in one call

Michael McMahon michaelm at openjdk.org
Tue Mar 12 14:37:13 UTC 2024


On Tue, 12 Mar 2024 13:06:24 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

> Did you mean "or if the URI string is otherwise invalid?" 

Yes, that is clearer.

> Also we could add an `@spec` here to say the returned value is equivalent to `HttpRequest.newBuilder(URI.create(uristring).GET().build()`

Not sure that really adds much value imo.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/18227#discussion_r1521582349


More information about the net-dev mailing list