/external/apache-http/src/org/apache/http/protocol/ |
H A D | RequestContent.java | 68 throw new IllegalArgumentException("HTTP request may not be null"); 71 if (request.containsHeader(HTTP.TRANSFER_ENCODING)) { 74 if (request.containsHeader(HTTP.CONTENT_LEN)) { 80 request.addHeader(HTTP.CONTENT_LEN, "0"); 89 request.addHeader(HTTP.TRANSFER_ENCODING, HTTP.CHUNK_CODING); 91 request.addHeader(HTTP.CONTENT_LEN, Long.toString(entity.getContentLength())); 95 HTTP.CONTENT_TYPE )) { 100 HTTP.CONTENT_ENCODING)) {
|
H A D | RequestConnControl.java | 63 throw new IllegalArgumentException("HTTP request may not be null"); 65 if (!request.containsHeader(HTTP.CONN_DIRECTIVE)) { 68 request.addHeader(HTTP.CONN_DIRECTIVE, HTTP.CONN_KEEP_ALIVE);
|
H A D | ResponseContent.java | 69 throw new IllegalArgumentException("HTTP request may not be null"); 71 if (response.containsHeader(HTTP.TRANSFER_ENCODING)) { 74 if (response.containsHeader(HTTP.CONTENT_LEN)) { 82 response.addHeader(HTTP.TRANSFER_ENCODING, HTTP.CHUNK_CODING); 84 response.addHeader(HTTP.CONTENT_LEN, Long.toString(entity.getContentLength())); 88 HTTP.CONTENT_TYPE )) { 93 HTTP.CONTENT_ENCODING)) { 101 response.addHeader(HTTP.CONTENT_LEN, "0");
|
H A D | ResponseConnControl.java | 70 throw new IllegalArgumentException("HTTP response may not be null"); 73 throw new IllegalArgumentException("HTTP context may not be null"); 84 response.setHeader(HTTP.CONN_DIRECTIVE, HTTP.CONN_CLOSE); 87 // Always drop connection for HTTP/1.0 responses and below 94 response.setHeader(HTTP.CONN_DIRECTIVE, HTTP.CONN_CLOSE); 102 Header header = request.getFirstHeader(HTTP.CONN_DIRECTIVE); 104 response.setHeader(HTTP.CONN_DIRECTIVE, header.getValue());
|
H A D | RequestDate.java | 68 ("HTTP request may not be null."); 71 !request.containsHeader(HTTP.DATE_HEADER)) { 73 request.setHeader(HTTP.DATE_HEADER, httpdate);
|
H A D | RequestUserAgent.java | 64 throw new IllegalArgumentException("HTTP request may not be null"); 66 if (!request.containsHeader(HTTP.USER_AGENT)) { 69 request.addHeader(HTTP.USER_AGENT, useragent);
|
H A D | HTTP.java | 2 * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/protocol/HTTP.java $ 35 * Constants and static helpers related to the HTTP protocol. 48 public final class HTTP { class 55 /** HTTP header definitions */ 67 /** HTTP expectations */ 70 /** HTTP connection control */ 101 private HTTP() { method in class:HTTP
|
H A D | ResponseDate.java | 68 ("HTTP response may not be null."); 72 !response.containsHeader(HTTP.DATE_HEADER)) { 74 response.setHeader(HTTP.DATE_HEADER, httpdate);
|
H A D | ResponseServer.java | 65 throw new IllegalArgumentException("HTTP request may not be null"); 67 if (!response.containsHeader(HTTP.SERVER_HEADER)) { 71 response.addHeader(HTTP.SERVER_HEADER, s);
|
/external/jetty/src/java/org/eclipse/jetty/http/ |
H A D | HttpSchemes.java | 32 HTTP ="http", field in class:HttpSchemes 36 HTTP_BUFFER = new ByteArrayBuffer(HTTP),
|
/external/apache-http/src/org/apache/http/impl/entity/ |
H A D | StrictContentLengthStrategy.java | 40 import org.apache.http.protocol.HTTP; 100 * For compatibility with HTTP/1.0 applications, HTTP/1.1 requests containing a message-body 101 * MUST include a valid Content-Length header field unless the server is known to be HTTP/1.1 107 * <p>All HTTP/1.1 applications that receive entities MUST accept the "chunked" transfer-coding 131 * All transfer-coding values are case-insensitive. HTTP/1.1 uses transfer-coding values in 190 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); 199 if (HTTP [all...] |
H A D | LaxContentLengthStrategy.java | 43 import org.apache.http.protocol.HTTP; 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 194 throw new IllegalArgumentException("HTTP message may not be null"); 200 Header transferEncodingHeader = message.getFirstHeader(HTTP.TRANSFER_ENCODING); 201 Header contentLengthHeader = message.getFirstHeader(HTTP.CONTENT_LEN); 218 && !encoding.equalsIgnoreCase(HTTP [all...] |
/external/apache-http/src/org/apache/http/client/entity/ |
H A D | UrlEncodedFormEntity.java | 38 import org.apache.http.protocol.HTTP; 42 * This is typically useful while sending an HTTP POST request. 69 * of parameters with the default encoding of {@link HTTP#DEFAULT_CONTENT_CHARSET} 76 super(URLEncodedUtils.format(parameters, HTTP.DEFAULT_CONTENT_CHARSET), 77 HTTP.DEFAULT_CONTENT_CHARSET);
|
/external/apache-http/src/org/apache/http/client/methods/ |
H A D | HttpEntityEnclosingRequestBase.java | 38 import org.apache.http.protocol.HTTP; 41 * Basic implementation of an HTTP request that can be modified. 72 Header expect = getFirstHeader(HTTP.EXPECT_DIRECTIVE); 73 return expect != null && HTTP.EXPECT_CONTINUE.equalsIgnoreCase(expect.getValue());
|
/external/apache-http/src/org/apache/http/impl/client/ |
H A D | EntityEnclosingRequestWrapper.java | 38 import org.apache.http.protocol.HTTP; 79 Header expect = getFirstHeader(HTTP.EXPECT_DIRECTIVE); 80 return expect != null && HTTP.EXPECT_CONTINUE.equalsIgnoreCase(expect.getValue());
|
H A D | DefaultConnectionKeepAliveStrategy.java | 38 import org.apache.http.protocol.HTTP; 63 throw new IllegalArgumentException("HTTP response may not be null"); 66 response.headerIterator(HTTP.CONN_KEEP_ALIVE));
|
/external/apache-http/src/org/apache/http/message/ |
H A D | BasicHttpEntityEnclosingRequest.java | 39 import org.apache.http.protocol.HTTP; 82 Header expect = getFirstHeader(HTTP.EXPECT_DIRECTIVE); 83 return expect != null && HTTP.EXPECT_CONTINUE.equalsIgnoreCase(expect.getValue());
|
/external/apache-http/src/org/apache/http/ |
H A D | HttpVersion.java | 37 * Represents an HTTP version, as specified in RFC 2616. 54 public static final String HTTP = "HTTP"; field in class:HttpVersion 56 /** HTTP protocol version 0.9 */ 59 /** HTTP protocol version 1.0 */ 62 /** HTTP protocol version 1.1 */ 67 * Create an HTTP protocol version designator. 69 * @param major the major version number of the HTTP protocol 70 * @param minor the minor version number of the HTTP protocol 75 super(HTTP, majo [all...] |
/external/apache-http/src/org/apache/http/auth/params/ |
H A D | AuthParams.java | 35 import org.apache.http.protocol.HTTP; 39 * to simplify manipulation of the HTTP authentication specific parameters. 64 * {@link HTTP#DEFAULT_PROTOCOL_CHARSET HTTP.DEFAULT_PROTOCOL_CHARSET} 73 throw new IllegalArgumentException("HTTP parameters may not be null"); 80 charset = HTTP.DEFAULT_PROTOCOL_CHARSET; 94 throw new IllegalArgumentException("HTTP parameters may not be null");
|
/external/apache-http/src/org/apache/http/entity/ |
H A D | StringEntity.java | 40 import org.apache.http.protocol.HTTP; 67 charset = HTTP.DEFAULT_CONTENT_CHARSET; 70 setContentType(HTTP.PLAIN_TEXT_TYPE + HTTP.CHARSET_PARAM + charset);
|
H A D | AbstractHttpEntity.java | 39 import org.apache.http.protocol.HTTP; 149 h = new BasicHeader(HTTP.CONTENT_TYPE, ctString); 178 h = new BasicHeader(HTTP.CONTENT_ENCODING, ceString);
|
/external/curl/lib/ |
H A D | rtsp.h | 58 * HTTP functions can safely treat this as an HTTP struct, but RTSP aware 61 struct HTTP http_wrapper; /*wrap HTTP to do the heavy lifting */
|
/external/apache-http/src/org/apache/http/impl/ |
H A D | DefaultConnectionReuseStrategy.java | 42 import org.apache.http.protocol.HTTP; 60 * the HTTP version is applied. Since HTTP/1.1, connections are re-used 61 * by default. Up until HTTP/1.0, connections are not re-used by default. 87 ("HTTP response may not be null."); 91 ("HTTP context may not be null."); 118 // broken but unfortunately common extension of HTTP. 119 HeaderIterator hit = response.headerIterator(HTTP.CONN_DIRECTIVE); 123 // Experimental usage of the "Connection" header in HTTP/1.0 is 126 // Note that the final specification of HTTP/1. [all...] |
/external/apache-http/src/org/apache/http/util/ |
H A D | EncodingUtils.java | 35 import org.apache.http.protocol.HTTP; 53 * Converts the byte array of HTTP content characters to a string. If 87 * Converts the byte array of HTTP content characters to a string. If 140 return data.getBytes(HTTP.US_ASCII); 148 * to be used when decoding content of HTTP elements (such as response 163 return new String(data, offset, length, HTTP.US_ASCII); 171 * to be used when decoding content of HTTP elements (such as response
|
/external/apache-http/src/org/apache/http/impl/io/ |
H A D | AbstractSessionOutputBuffer.java | 41 import org.apache.http.protocol.HTTP; 59 private static final byte[] CRLF = new byte[] {HTTP.CR, HTTP.LF}; 66 private String charset = HTTP.US_ASCII; 79 throw new IllegalArgumentException("HTTP parameters may not be null"); 84 this.ascii = this.charset.equalsIgnoreCase(HTTP.US_ASCII) 85 || this.charset.equalsIgnoreCase(HTTP.ASCII);
|