public class AsyncHttpClientExample {
public static void main(String[] args) throws Exception {
HttpClient httpClient = new HttpClient();
ContentResponse response = httpClient.newRequest("http://example.com")
.send();
response.waitCompletion();
System.out.println(response.getContentAsString());
}
}