Home | History | Annotate | Download | only in protocol

Lines Matching refs:HTTP

2  * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/protocol/RequestContent.java $
15 * http://www.apache.org/licenses/LICENSE-2.0
28 * <http://www.apache.org/>.
32 package org.apache.http.protocol;
36 import org.apache.http.HttpEntity;
37 import org.apache.http.HttpEntityEnclosingRequest;
38 import org.apache.http.HttpException;
39 import org.apache.http.HttpRequest;
40 import org.apache.http.HttpRequestInterceptor;
41 import org.apache.http.HttpVersion;
42 import org.apache.http.ProtocolVersion;
43 import org.apache.http.ProtocolException;
63 throw new IllegalArgumentException("HTTP request may not be null");
66 if (request.containsHeader(HTTP.TRANSFER_ENCODING)) {
69 if (request.containsHeader(HTTP.CONTENT_LEN)) {
75 request.addHeader(HTTP.CONTENT_LEN, "0");
84 request.addHeader(HTTP.TRANSFER_ENCODING, HTTP.CHUNK_CODING);
86 request.addHeader(HTTP.CONTENT_LEN, Long.toString(entity.getContentLength()));
90 HTTP.CONTENT_TYPE )) {
95 HTTP.CONTENT_ENCODING)) {