Home
last modified time | relevance | path

Searched refs:HTTP (Results 1 – 25 of 199) sorted by relevance

12345678

/external/apache-http/src/org/apache/http/protocol/
DRequestContent.java66 if (request.containsHeader(HTTP.TRANSFER_ENCODING)) { in process()
69 if (request.containsHeader(HTTP.CONTENT_LEN)) { in process()
75 request.addHeader(HTTP.CONTENT_LEN, "0"); in process()
84 request.addHeader(HTTP.TRANSFER_ENCODING, HTTP.CHUNK_CODING); in process()
86 request.addHeader(HTTP.CONTENT_LEN, Long.toString(entity.getContentLength())); in process()
90 HTTP.CONTENT_TYPE )) { in process()
95 HTTP.CONTENT_ENCODING)) { in process()
DResponseContent.java66 if (response.containsHeader(HTTP.TRANSFER_ENCODING)) { in process()
69 if (response.containsHeader(HTTP.CONTENT_LEN)) { in process()
77 response.addHeader(HTTP.TRANSFER_ENCODING, HTTP.CHUNK_CODING); in process()
79 response.addHeader(HTTP.CONTENT_LEN, Long.toString(entity.getContentLength())); in process()
83 HTTP.CONTENT_TYPE )) { in process()
88 HTTP.CONTENT_ENCODING)) { in process()
96 response.addHeader(HTTP.CONTENT_LEN, "0"); in process()
DResponseConnControl.java79 response.setHeader(HTTP.CONN_DIRECTIVE, HTTP.CONN_CLOSE); in process()
89 response.setHeader(HTTP.CONN_DIRECTIVE, HTTP.CONN_CLOSE); in process()
97 Header header = request.getFirstHeader(HTTP.CONN_DIRECTIVE); in process()
99 response.setHeader(HTTP.CONN_DIRECTIVE, header.getValue()); in process()
DRequestConnControl.java60 if (!request.containsHeader(HTTP.CONN_DIRECTIVE)) { in process()
63 request.addHeader(HTTP.CONN_DIRECTIVE, HTTP.CONN_KEEP_ALIVE); in process()
/external/apache-http/src/org/apache/http/impl/entity/
DLaxContentLengthStrategy.java43 import org.apache.http.protocol.HTTP;
195 Header transferEncodingHeader = message.getFirstHeader(HTTP.TRANSFER_ENCODING); in determineLength()
196 Header contentLengthHeader = message.getFirstHeader(HTTP.CONTENT_LEN); in determineLength()
213 && !encoding.equalsIgnoreCase(HTTP.CHUNK_CODING) in determineLength()
214 && !encoding.equalsIgnoreCase(HTTP.IDENTITY_CODING)) { in determineLength()
221 if (HTTP.IDENTITY_CODING.equalsIgnoreCase(transferEncodingHeader.getValue())) { in determineLength()
223 } else if ((len > 0) && (HTTP.CHUNK_CODING.equalsIgnoreCase( in determineLength()
234 Header[] headers = message.getHeaders(HTTP.CONTENT_LEN); in determineLength()
DStrictContentLengthStrategy.java40 import org.apache.http.protocol.HTTP;
190 Header transferEncodingHeader = message.getFirstHeader(HTTP.TRANSFER_ENCODING); in determineLength()
191 Header contentLengthHeader = message.getFirstHeader(HTTP.CONTENT_LEN); in determineLength()
194 if (HTTP.CHUNK_CODING.equalsIgnoreCase(s)) { in determineLength()
201 } else if (HTTP.IDENTITY_CODING.equalsIgnoreCase(s)) { in determineLength()
/external/apache-harmony/luni/src/test/resources/net.resources/
DREADME.txt20 HTTP
22 The HTTP folder contains files to be deployed on an HTTP server.
25 placed in the normal bin directory for your HTTP server (e.g. "cgi-bin" for the
26 Apache HTTP server). The intent is that this script can be accessed with the URL
32 HTTP server)...
65 1. Install the FTP and HTTP documents to their respective server locations as
67 2. Enable proxying capability on the HTTP server.
68 3. Start the HTTP and FTP servers.
77 HTTP server where the testres231 files are hosted, the network location of the
88 that contains suitable property values if the HTTP, FTP and SOCKS servers were
[all …]
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/
DProxyTest.java33 Proxy proxy = new Proxy(Proxy.Type.HTTP, address); in test_ConstructorLjava_net_ProxyLjava_net_SocketAddress_Normal()
34 assertEquals(Proxy.Type.HTTP, proxy.type()); in test_ConstructorLjava_net_ProxyLjava_net_SocketAddress_Normal()
55 proxy = new Proxy(Proxy.Type.HTTP, null); in test_ConstructorLjava_net_ProxyLjava_net_SocketAddress_IllegalAddress()
111 Proxy proxy = new Proxy(Proxy.Type.HTTP, address); in test_toString()
132 proxy = new Proxy(Proxy.Type.HTTP, address); in test_toString()
145 Proxy proxy1 = new Proxy(Proxy.Type.HTTP, address1); in test_equalsLjava_lang_Object_Equals()
146 Proxy proxy2 = new Proxy(Proxy.Type.HTTP, address2); in test_equalsLjava_lang_Object_Equals()
170 Proxy proxy[] = { new Proxy(Proxy.Type.HTTP, address1), in test_equalsLjava_lang_Object_NotEquals()
171 new Proxy(Proxy.Type.HTTP, address2), in test_equalsLjava_lang_Object_NotEquals()
190 assertEquals(Proxy.Type.HTTP, Proxy.Type.valueOf("HTTP")); in test_Type_valueOfLjava_lang_String_Normal()
[all …]
DProxySelectorTest.java130 assertProxyEquals(proxyList,Proxy.Type.HTTP,HTTP_PROXY_HOST,HTTP_PROXY_PORT); in test_selectLjava_net_URI_SelectExact()
133 assertProxyEquals(proxyList,Proxy.Type.HTTP,HTTPS_PROXY_HOST,HTTPS_PROXY_PORT); in test_selectLjava_net_URI_SelectExact()
136 assertProxyEquals(proxyList,Proxy.Type.HTTP,FTP_PROXY_HOST,FTP_PROXY_PORT); in test_selectLjava_net_URI_SelectExact()
171 assertProxyEquals(proxyList, Proxy.Type.HTTP, HTTP_PROXY_HOST, in test_selectLjava_net_URI_SelectExact_NullHost()
175 assertProxyEquals(proxyList, Proxy.Type.HTTP, HTTPS_PROXY_HOST, in test_selectLjava_net_URI_SelectExact_NullHost()
179 assertProxyEquals(proxyList, Proxy.Type.HTTP, FTP_PROXY_HOST, in test_selectLjava_net_URI_SelectExact_NullHost()
204 assertProxyEquals(proxyList, Proxy.Type.HTTP, HTTP_PROXY_HOST, in test_selectLjava_net_URI_SelectExact_NullHost_withNoProxyHostsProperty()
224 assertProxyEquals(proxyList,Proxy.Type.HTTP,HTTP_PROXY_HOST,HTTP_PROXY_PORT); in test_selectLjava_net_URI_SelectExact_DefaultPort()
227 assertProxyEquals(proxyList,Proxy.Type.HTTP,HTTPS_PROXY_HOST,HTTPS_PROXY_PORT); in test_selectLjava_net_URI_SelectExact_DefaultPort()
230 assertProxyEquals(proxyList,Proxy.Type.HTTP,FTP_PROXY_HOST,FTP_PROXY_PORT); in test_selectLjava_net_URI_SelectExact_DefaultPort()
[all …]
/external/apache-http/src/org/apache/http/impl/io/
DAbstractSessionInputBuffer.java42 import org.apache.http.protocol.HTTP;
62 private String charset = HTTP.US_ASCII;
84 this.ascii = this.charset.equalsIgnoreCase(HTTP.US_ASCII) in init()
85 || this.charset.equalsIgnoreCase(HTTP.ASCII); in init()
157 if (this.buffer[i] == HTTP.LF) { in locateLF()
212 if (this.linebuffer.byteAt(l - 1) == HTTP.LF) { in lineFromLineBuffer()
218 if (this.linebuffer.byteAt(l - 1) == HTTP.CR) { in lineFromLineBuffer()
244 if (pos > off && this.buffer[pos - 1] == HTTP.CR) { in lineFromReadBuffer()
DAbstractSessionOutputBuffer.java41 import org.apache.http.protocol.HTTP;
54 private static final byte[] CRLF = new byte[] {HTTP.CR, HTTP.LF};
61 private String charset = HTTP.US_ASCII;
79 this.ascii = this.charset.equalsIgnoreCase(HTTP.US_ASCII) in init()
80 || this.charset.equalsIgnoreCase(HTTP.ASCII); in init()
/external/apache-http/src/org/apache/http/entity/
DStringEntity.java40 import org.apache.http.protocol.HTTP;
62 charset = HTTP.DEFAULT_CONTENT_CHARSET; in StringEntity()
65 setContentType(HTTP.PLAIN_TEXT_TYPE + HTTP.CHARSET_PARAM + charset); in StringEntity()
DAbstractHttpEntity.java39 import org.apache.http.protocol.HTTP;
144 h = new BasicHeader(HTTP.CONTENT_TYPE, ctString); in setContentType()
173 h = new BasicHeader(HTTP.CONTENT_ENCODING, ceString); in setContentEncoding()
/external/smack/src/org/jivesoftware/smack/proxy/
DHTTPProxySocketFactory.java108 throw new ProxyException(ProxyInfo.ProxyType.HTTP, "Recieved " + in httpProxifiedSocket()
114 throw new ProxyException(ProxyInfo.ProxyType.HTTP); in httpProxifiedSocket()
136 throw new ProxyException(ProxyInfo.ProxyType.HTTP, "Never " + in httpProxifiedSocket()
148 throw new ProxyException(ProxyInfo.ProxyType.HTTP, "Empty proxy " + in httpProxifiedSocket()
155 throw new ProxyException(ProxyInfo.ProxyType.HTTP , "Unexpected " + in httpProxifiedSocket()
163 throw new ProxyException(ProxyInfo.ProxyType.HTTP); in httpProxifiedSocket()
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/servers/
Dlighttpd.conf73 $HTTP["url"] =~ "^/xmlhttprequest/resources/reply2.(txt|xml)" {
79 $HTTP["url"] =~ "^/xmlhttprequest/resources/reply4.txt" {
85 $HTTP["url"] =~ "^/appcache/resources/wrong-content-type.manifest" {
/external/apache-http/src/org/apache/http/impl/
DDefaultConnectionReuseStrategy.java42 import org.apache.http.protocol.HTTP;
114 HeaderIterator hit = response.headerIterator(HTTP.CONN_DIRECTIVE); in keepAlive()
147 if (HTTP.CONN_CLOSE.equalsIgnoreCase(token)) { in keepAlive()
149 } else if (HTTP.CONN_KEEP_ALIVE.equalsIgnoreCase(token)) { in keepAlive()
/external/apache-http/src/org/apache/http/client/entity/
DUrlEncodedFormEntity.java38 import org.apache.http.protocol.HTTP;
71 super(URLEncodedUtils.format(parameters, HTTP.DEFAULT_CONTENT_CHARSET), in UrlEncodedFormEntity()
72 HTTP.DEFAULT_CONTENT_CHARSET); in UrlEncodedFormEntity()
/external/apache-http/src/org/apache/http/impl/client/
DEntityEnclosingRequestWrapper.java38 import org.apache.http.protocol.HTTP;
74 Header expect = getFirstHeader(HTTP.EXPECT_DIRECTIVE); in expectContinue()
75 return expect != null && HTTP.EXPECT_CONTINUE.equalsIgnoreCase(expect.getValue()); in expectContinue()
/external/apache-http/src/org/apache/http/client/methods/
DHttpEntityEnclosingRequestBase.java38 import org.apache.http.protocol.HTTP;
67 Header expect = getFirstHeader(HTTP.EXPECT_DIRECTIVE); in expectContinue()
68 return expect != null && HTTP.EXPECT_CONTINUE.equalsIgnoreCase(expect.getValue()); in expectContinue()
/external/apache-http/src/org/apache/http/message/
DBasicHttpEntityEnclosingRequest.java39 import org.apache.http.protocol.HTTP;
77 Header expect = getFirstHeader(HTTP.EXPECT_DIRECTIVE); in expectContinue()
78 return expect != null && HTTP.EXPECT_CONTINUE.equalsIgnoreCase(expect.getValue()); in expectContinue()
/external/chromium_org/net/http/
Dhttp_proxy_client_socket_pool_unittest.cc36 HTTP, enumerator
43 : proxy_type(HTTP), in HttpProxyClientSocketPoolTestParams()
105 GURL proxy_url(GetParam().proxy_type == HTTP ? in AddAuthToCache()
117 if (GetParam().proxy_type != HTTP) in CreateHttpProxyParams()
126 if (GetParam().proxy_type == HTTP) in CreateHttpsProxyParams()
188 if (GetParam().proxy_type != HTTP) { in Initialize()
242 HttpProxyClientSocketPoolTestParams(HTTP, kProtoDeprecatedSPDY2),
245 HttpProxyClientSocketPoolTestParams(HTTP, kProtoSPDY3),
248 HttpProxyClientSocketPoolTestParams(HTTP, kProtoSPDY31),
251 HttpProxyClientSocketPoolTestParams(HTTP, kProtoSPDY4a2),
[all …]
/external/chromium_org/components/policy/proto/
Dchrome_extension_policy.proto30 // The HTTP GET request sent to |download_url| must include an
31 // "Authorization: " HTTP header of the GoogleDMToken type. Its value is the
35 // The HTTP GET request sent to |download_url| must include an
36 // "Authorization: " HTTP header of the "OAuth" type. Its value is a valid
/external/chromium_org/chrome/browser/policy/proto/cloud/
Dchrome_extension_policy.proto30 // The HTTP GET request sent to |download_url| must include an
31 // "Authorization: " HTTP header of the GoogleDMToken type. Its value is the
35 // The HTTP GET request sent to |download_url| must include an
36 // "Authorization: " HTTP header of the "OAuth" type. Its value is a valid
/external/apache-http/src/org/apache/http/util/
DEncodingUtils.java35 import org.apache.http.protocol.HTTP;
135 return data.getBytes(HTTP.US_ASCII); in getAsciiBytes()
158 return new String(data, offset, length, HTTP.US_ASCII); in getAsciiString()
/external/chromium_org/ppapi/api/
Dppb_url_response_info.idl27 * HTTP Request URI</a> and
38 * HTTP Status Codes - Redirection</a> documentation for further information.
43 * This corresponds to a string (PP_VARTYPE_STRING); the HTTP method to be
47 * HTTP Status Codes - Redirection</a> documentation for further information.
55 * HTTP Status Code and Reason Phrase</a> documentation for further
64 * HTTP Response Status Line</a> documentation for further information.
73 * HTTP Header Field Definitions</a> documentation for further information.

12345678