re: A quick look at Java 11's HttpClient VIEW POST

FULL DISCUSSION
 

Nice article!

I have to say though; the more I learn about Java the more I love JS:

const res = await fetch("http://anthonybruno.com.au/last-update");
const text = res.text();
console.log(text);
 

Thanks for reading :)

Unfourtantly, Java does have a verbosity problem, especially compared to a dynamic language like Javascript! fetch does have a great API. It's much nicer than the older XMLHttpRequest.

code of conduct - report abuse