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()); } }


上一篇:
下一篇:
切换中文