Why did the author use EntityUtils.consume(httpEntity);?
问题 I've come across EntityUtils.consume(httpEntity); and I'm not sure what it really does. For example: try { //... some code HttpEntity httpEntity = httpResponse.getEntity(); BufferedReader br = new BufferedReader(new InputStreamReader(http.Entity.getContent())); String line; while ((line = br.readLine())!= null) { System.out.println(line); } EntityUtils.consume(httpEntity); } catch (Exception e) { //code } finally { httpClient.getConnectionManager().shutdown(); } Why did the author put in