/external/chromium_org/components/cronet/android/java/src/org/chromium/net/ |
UrlRequest.java | 34 public void addHeader(String header, String value);
|
CronetUrlRequest.java | 17 public void addHeader(String header, String value) {
|
/libcore/benchmarks/src/benchmarks/regression/ |
URLConnectionBenchmark.java | 113 response.addHeader("Date: Wed, 30 Jun 2010 17:57:39 GMT"); 114 response.addHeader("Server: hi"); 115 response.addHeader("X-RateLimit-Remaining: 0"); 116 response.addHeader("X-Runtime: 0.01637"); 117 response.addHeader("Content-Type: application/json; charset=utf-8"); 118 response.addHeader("X-RateLimit-Class: api_whitelisted"); 119 response.addHeader("Cache-Control: no-cache, max-age=300"); 120 response.addHeader("X-RateLimit-Reset: 1277920980"); 121 response.addHeader("Set-Cookie: _twitter_sess=BAh7EDoOcmV0dXJuX3RvIjZodHRwOi8vZGV2L" 131 response.addHeader("Expires: Wed, 30 Jun 2010 18:02:39 GMT") [all...] |
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ |
HttpResponseCacheTest.java | 203 new MockResponse().addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) 204 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) 207 .addHeader("WWW-Authenticate: challenge"); 209 response.addHeader("Proxy-Authenticate: Basic realm=\"protected area\""); 211 response.addHeader("WWW-Authenticate: Basic realm=\"protected area\""); 243 .addHeader("Content-Type: text/plain") 244 .addHeader("fgh: ijk") 311 new MockResponse().addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) 312 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) 346 server.enqueue(new MockResponse().addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS) [all...] |
ResponseCacheTest.java | 150 new MockResponse().addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) 151 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) 179 server.enqueue(new MockResponse().addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) 180 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) 229 server.enqueue(new MockResponse().addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) 230 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) 232 .addHeader("Location: /foo")); 233 server.enqueue(new MockResponse().addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) 234 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) 247 server.enqueue(new MockResponse().addHeader("Cache-Control: max-age=60").setBody("ABC")) [all...] |
/external/apache-http/src/org/apache/http/protocol/ |
RequestContent.java | 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())); 96 request.addHeader(entity.getContentType()); 101 request.addHeader(entity.getContentEncoding());
|
ResponseContent.java | 82 response.addHeader(HTTP.TRANSFER_ENCODING, HTTP.CHUNK_CODING); 84 response.addHeader(HTTP.CONTENT_LEN, Long.toString(entity.getContentLength())); 89 response.addHeader(entity.getContentType()); 94 response.addHeader(entity.getContentEncoding()); 101 response.addHeader(HTTP.CONTENT_LEN, "0");
|
RequestConnControl.java | 68 request.addHeader(HTTP.CONN_DIRECTIVE, HTTP.CONN_KEEP_ALIVE);
|
RequestUserAgent.java | 69 request.addHeader(HTTP.USER_AGENT, useragent);
|
ResponseServer.java | 71 response.addHeader(HTTP.SERVER_HEADER, s);
|
/external/apache-http/src/org/apache/http/ |
HttpMessage.java | 116 void addHeader(Header header); 125 void addHeader(String name, String value);
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
SyncApiTest.java | 59 .addHeader("Content-Type: text/plain")); 99 .addHeader("Content-Type: text/plain")); 142 server.enqueue(new MockResponse().setBody("A").addHeader("ETag: v1")); 160 server.enqueue(new MockResponse().setBody("A").addHeader("ETag: v1")); 178 .addHeader("Location: /b") 179 .addHeader("Test", "Redirect from /a to /b") 183 .addHeader("Location: /c") 184 .addHeader("Test", "Redirect from /b to /c") 208 .addHeader("Location: /b") 209 .addHeader("Test", "Redirect from /a to /b" [all...] |
AsyncApiTest.java | 63 .addHeader("Content-Type: text/plain")); 104 .addHeader("Content-Type: text/plain")); 156 server.enqueue(new MockResponse().setBody("A").addHeader("ETag: v1")); 180 server.enqueue(new MockResponse().setBody("A").addHeader("ETag: v1")); 204 .addHeader("Location: /b") 205 .addHeader("Test", "Redirect from /a to /b") 209 .addHeader("Location: /c") 210 .addHeader("Test", "Redirect from /b to /c") 237 .addHeader("Location: /b") 238 .addHeader("Test", "Redirect from /a to /b" [all...] |
/external/apache-http/src/org/apache/http/message/ |
AbstractHttpMessage.java | 98 public void addHeader(final Header header) { 99 this.headergroup.addHeader(header); 103 public void addHeader(final String name, final String value) { 107 this.headergroup.addHeader(new BasicHeader(name, value));
|
/frameworks/base/core/tests/coretests/src/android/net/http/ |
CookiesTest.java | 53 .addHeader("Set-Cookie: password=secret; Domain=fake.domain")); 83 .addHeader("Set-Cookie: a=first; Domain=my.t-mobile.com") 84 .addHeader("Set-Cookie: b=second; Domain=.T-mobile.com") 85 .addHeader("Set-Cookie: c=third; Domain=.t-mobile.com")
|
/external/mockwebserver/src/test/java/com/google/mockwebserver/ |
MockWebServerTest.java | 83 .addHeader("Cookie: s=square") 84 .addHeader("Cookie", "a=android"); 92 .addHeader("Cookie: s=square") 93 .addHeader("Cookie: a=android") 94 .addHeader("Cookies: delicious"); 121 .addHeader("Location: " + server.getUrl("/new-path")) 163 .addHeader("Transfer-encoding: chunked")); 179 .addHeader("Content-Length: 4"));
|
/external/chromium_org/third_party/WebKit/Source/platform/exported/ |
WebHTTPLoadInfo.cpp | 101 static void addHeader(HTTPHeaderMap* map, const WebString& name, const WebString& value) 112 addHeader(&m_private->requestHeaders, name, value); 118 addHeader(&m_private->responseHeaders, name, value);
|
/external/apache-http/src/org/apache/http/client/protocol/ |
RequestDefaultHeaders.java | 74 request.addHeader((Header) defHeader);
|
/external/mockwebserver/src/main/java/com/google/mockwebserver/ |
MockResponse.java | 107 public MockResponse addHeader(String header) { 116 public MockResponse addHeader(String name, Object value) { 117 return addHeader(name + ": " + String.valueOf(value)); 126 return addHeader(name, value);
|
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/ |
MockResponse.java | 100 public MockResponse addHeader(String header) { 109 public MockResponse addHeader(String name, Object value) { 110 return addHeader(name + ": " + String.valueOf(value)); 119 return addHeader(name, value);
|
/external/okhttp/samples/static-server/src/main/java/com/squareup/okhttp/sample/ |
SampleServer.java | 50 .addHeader("content-type: text/plain; charset=utf-8") 55 .addHeader("content-type: text/plain; charset=utf-8") 74 .addHeader("content-type: text/html; charset=utf-8") 82 .addHeader("content-type: " + contentType(path));
|
/packages/apps/UnifiedEmail/src/com/android/emailcommon/mail/ |
Part.java | 23 public void addHeader(String name, String value) throws MessagingException;
|
/external/okhttp/mockwebserver/src/test/java/com/squareup/okhttp/mockwebserver/ |
MockWebServerTest.java | 86 .addHeader("Cookie: s=square") 87 .addHeader("Cookie", "a=android"); 95 .addHeader("Cookie: s=square") 96 .addHeader("Cookie: a=android") 97 .addHeader("Cookies: delicious"); 181 .addHeader("Location: " + server.getUrl("/new-path")) 223 .addHeader("Transfer-encoding: chunked")); 239 .addHeader("Content-Length: 4"));
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/tester/org/apache/http/ |
HttpResponseStub.java | 79 @Override public void addHeader(Header header) { 83 @Override public void addHeader(String s, String s1) {
|
/frameworks/opt/net/voip/src/java/com/android/server/sip/ |
SipHelper.java | 218 request.addHeader(createWildcardContactHeader()); 220 request.addHeader(createContactHeader(userProfile)); 222 request.addHeader(mHeaderFactory.createExpiresHeader(expiry)); 251 request.addHeader(userAgentHeader); 283 request.addHeader(createContactHeader(caller)); 292 if (referredBy != null) request.addHeader(referredBy); 294 request.addHeader(mHeaderFactory.createHeader( 360 response.addHeader(toHeader); 380 response.addHeader(createContactHeader(localProfile, externalIp, 467 request.addHeader(mHeaderFactory.createSubscriptionStateHeader [all...] |