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