Lines Matching refs:entity
46 * A response interceptor that sets up entity-related headers.
78 HttpEntity entity = response.getEntity();
79 if (entity != null) {
80 long len = entity.getContentLength();
81 if (entity.isChunked() && !ver.lessEquals(HttpVersion.HTTP_1_0)) {
84 response.addHeader(HTTP.CONTENT_LEN, Long.toString(entity.getContentLength()));
87 if (entity.getContentType() != null && !response.containsHeader(
89 response.addHeader(entity.getContentType());
92 if (entity.getContentEncoding() != null && !response.containsHeader(
94 response.addHeader(entity.getContentEncoding());