Search code examples
javawebclientniohttpurlconnection

Java: NIO version of HttpURLConnection?


I have to download many many web pages and I am going to use HttpURLConnection for doing because it is very convenient.

However, I don't want to use thread-based downloading. I wish to use async download and still use HttpURLConnection.

Is there a way for that? I really need java nio, but don't want to write the socket client by myself.

Thanks


Solution

  • Try netty or vert.x; the latter is based on the former.