return responseBody;
}
if (hasHttpResponse() && httpResponse.getEntity() != null) {
long now = System.nanoTime();
HttpEntity bufferedEntity = new BufferedHttpEntity(httpResponse.getEntity());
long contentLength = bufferedEntity.getContentLength();
if (metrics != null) {
metrics.setContentLength(contentLength);
}
InputStream instream = bufferedEntity.getContent();
try {
if (maxSize == 0 || (contentLength >= 0 && contentLength <= maxSize)) {
responseReadTime = System.nanoTime() - now;
responseBody = EntityUtils.toByteArray(bufferedEntity);