HttpClient调用execute方法,实际是InternalHttpClient调用其父类CloseableHttpClient的execute方法,进而调用InternalHttpClient的doExecute方法。
返回的HttpResponse实际是HttpResponseProxy,通过getEntity方法返回的是HttpEntity,实际是ResponseEntityProxy。在http1.1中,如果返回的是http trunk编码,则ResponseEntityProxy通过getContent方法返回的是EofSensorInputStream,在EofSensorInputStream中封装了ChunkedInputStream。