Possible Typo
Albert Attard
albertattard at gmail.com
Tue Aug 22 12:03:09 UTC 2023
Hello Folks.
Is there a typo in the example shown in
https://openjdk.org/groups/net/httpclient/intro.html?
HttpClient client = HttpClient.newBuilder()
.version(Version.HTTP_2)
.followRedirects(Redirect.SAME_PROTOCOL)
.proxy(ProxySelector.of(new InetSocketAddress("www-proxy.com", 8080)))
.authenticator(Authenticator.getDefault())
.build();
I believe that the enum value SAME_PROTOCOL was replaced by NORMAL (Java Doc
<https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpClient.Redirect.html>
).
With kind regards,
Albert Attard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/net-dev/attachments/20230822/0bcdc327/attachment.htm>
More information about the net-dev
mailing list