Home | History | Annotate | Download | only in entity

Lines Matching refs:HTTP

2  * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/impl/entity/LaxContentLengthStrategy.java $
15 * http://www.apache.org/licenses/LICENSE-2.0
28 * <http://www.apache.org/>.
32 package org.apache.http.impl.entity;
34 import org.apache.http.Header;
35 import org.apache.http.HeaderElement;
36 import org.apache.http.HttpException;
37 import org.apache.http.HttpMessage;
38 import org.apache.http.ParseException;
39 import org.apache.http.ProtocolException;
40 import org.apache.http.entity.ContentLengthStrategy;
41 import org.apache.http.params.HttpParams;
42 import org.apache.http.params.CoreProtocolPNames;
43 import org.apache.http.protocol.HTTP;
49 * <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec4.4">Section 4.4</a>,
50 * <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.6">Section 3.6</a>,
51 * <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.41">Section 14.41</a>
52 * and <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec14.13">Section 14.13</a>
53 * of <a href="http://www.w3.org/Protocols/rfc2616/rfc2616.txt">RFC 2616</a>, but is lenient
104 * For compatibility with HTTP/1.0 applications, HTTP/1.1 requests containing a message-body
105 * MUST include a valid Content-Length header field unless the server is known to be HTTP/1.1
111 * <p>All HTTP/1.1 applications that receive entities MUST accept the "chunked" transfer-coding
135 * All transfer-coding values are case-insensitive. HTTP/1.1 uses transfer-coding values in
189 throw new IllegalArgumentException("HTTP message may not be null");
195 Header transferEncodingHeader = message.getFirstHeader(HTTP.TRANSFER_ENCODING);
196 Header contentLengthHeader = message.getFirstHeader(HTTP.CONTENT_LEN);
213 && !encoding.equalsIgnoreCase(HTTP.CHUNK_CODING)
214 && !encoding.equalsIgnoreCase(HTTP.IDENTITY_CODING)) {
221 if (HTTP.IDENTITY_CODING.equalsIgnoreCase(transferEncodingHeader.getValue())) {
223 } else if ((len > 0) && (HTTP.CHUNK_CODING.equalsIgnoreCase(
234 Header[] headers = message.getHeaders(HTTP.CONTENT_LEN);