/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ |
D | ResponseCacheTest.java | 150 new MockResponse().addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in testResponseCaching() 151 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in testResponseCaching() 179 server.enqueue(new MockResponse().addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in secureResponseCaching() 180 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in secureResponseCaching() 229 server.enqueue(new MockResponse().addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in responseCachingAndRedirects() 230 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in responseCachingAndRedirects() 232 .addHeader("Location: /foo")); in responseCachingAndRedirects() 233 server.enqueue(new MockResponse().addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in responseCachingAndRedirects() 234 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in responseCachingAndRedirects() 247 server.enqueue(new MockResponse().addHeader("Cache-Control: max-age=60").setBody("ABC")); in redirectToCachedResult() [all …]
|
D | HttpResponseCacheTest.java | 203 new MockResponse().addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in assertCached() 204 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in assertCached() 207 .addHeader("WWW-Authenticate: challenge"); in assertCached() 209 response.addHeader("Proxy-Authenticate: Basic realm=\"protected area\""); in assertCached() 211 response.addHeader("WWW-Authenticate: Basic realm=\"protected area\""); in assertCached() 243 .addHeader("Content-Type: text/plain") in responseCacheCallbackApis() 244 .addHeader("fgh: ijk") in responseCacheCallbackApis() 311 new MockResponse().addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in testResponseCaching() 312 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in testResponseCaching() 346 server.enqueue(new MockResponse().addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in secureResponseCaching() [all …]
|
D | URLConnectionTest.java | 207 .addHeader("A: c") in responseHeaders() 208 .addHeader("B: d") in responseHeaders() 209 .addHeader("A: e") in responseHeaders() 516 server.enqueue(new MockResponse().addHeader("abc: def")); in getResponseCodeNoResponseBody() 758 .addHeader("Content-Length: 3")); in contentDisagreesWithContentLengthHeader() 814 mockResponse.addHeader("Transfer-encoding: chunked"); in contentDisagreesWithChunkedHeader() 976 .addHeader("Proxy-Authenticate: Basic realm=\"localhost\"")); in proxyAuthenticateOnConnect() 1133 MockResponse response = new MockResponse().addHeader("WWW-Authenticate: challenge") in unauthorizedResponseHandling() 1153 .addHeader("Transfer-encoding: chunked")); in nonHexChunkSize() 1167 .addHeader("Transfer-encoding: chunked") in missingChunkBody() [all …]
|
D | JavaApiConverterTest.java | 152 .addHeader("xyzzy", "baz") in testCreateOkResponseInternal() 434 .addHeader("A", "c") in createJavaUrlConnection_responseHeadersOk() 435 .addHeader("B", "d") in createJavaUrlConnection_responseHeadersOk() 436 .addHeader("A", "e") in createJavaUrlConnection_responseHeadersOk() 437 .addHeader("Content-Length", Long.toString(responseBody.contentLength())) in createJavaUrlConnection_responseHeadersOk() 585 .addHeader("key1", "value1_1") in createJavaCacheResponse_httpGet() 586 .addHeader("key2", "value2") in createJavaCacheResponse_httpGet() 587 .addHeader("key1", "value1_2") in createJavaCacheResponse_httpGet() 609 .addHeader("key1", "value1_1") in createJavaCacheResponse_httpPost() 610 .addHeader("key2", "value2") in createJavaCacheResponse_httpPost() [all …]
|
D | HttpOverSpdyTest.java | 227 server.enqueue(new MockResponse().addHeader("Content-Encoding: gzip") in gzippedResponseBody() 235 .addHeader("www-authenticate: Basic realm=\"protected area\"") in authenticate() 254 .addHeader("Location: /foo") in redirect() 354 server.enqueue(new MockResponse().addHeader("cache-control: max-age=60").setBody("A")); in responsesAreCached() 371 server.enqueue(new MockResponse().addHeader("ETag: v1").setBody("A")); in conditionalCache() 388 server.enqueue(new MockResponse().addHeader("cache-control: max-age=60").setBody("ABCD")); in responseCachedWithoutConsumingFullBody() 389 server.enqueue(new MockResponse().addHeader("cache-control: max-age=60").setBody("EFGH")); in responseCachedWithoutConsumingFullBody() 407 new MockResponse().addHeader("set-cookie: c=oreo; domain=" + server.getCookieDomain()) in acceptAndTransmitCookies()
|
D | CookiesTest.java | 69 server.enqueue(new MockResponse().addHeader("Set-Cookie: a=android; " in testNetscapeResponse() 97 server.enqueue(new MockResponse().addHeader("Set-Cookie: a=android; " in testRfc2109Response() 127 server.enqueue(new MockResponse().addHeader("Set-Cookie2: a=android; " in testRfc2965Response() 161 server.enqueue(new MockResponse().addHeader("Set-Cookie2: a=\"android\"; " in testQuotedAttributeValues() 222 .addHeader("Location: " + redirectTarget.getUrl("/"))); in testRedirectsDoNotIncludeTooManyCookies()
|
D | HeadersTest.java | 91 .addHeader("set-cookie", "Cookie1") in toNameValueBlock() 92 .addHeader("set-cookie", "Cookie2") in toNameValueBlock()
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | SyncApiTest.java | 59 .addHeader("Content-Type: text/plain")); in get() 99 .addHeader("Content-Type: text/plain")); in tls() 142 server.enqueue(new MockResponse().setBody("A").addHeader("ETag: v1")); in conditionalCacheHit() 160 server.enqueue(new MockResponse().setBody("A").addHeader("ETag: v1")); in conditionalCacheMiss() 178 .addHeader("Location: /b") in redirect() 179 .addHeader("Test", "Redirect from /a to /b") in redirect() 183 .addHeader("Location: /c") in redirect() 184 .addHeader("Test", "Redirect from /b to /c") in redirect() 208 .addHeader("Location: /b") in redirectWithRedirectsDisabled() 209 .addHeader("Test", "Redirect from /a to /b") in redirectWithRedirectsDisabled() [all …]
|
D | AsyncApiTest.java | 63 .addHeader("Content-Type: text/plain")); in get() 104 .addHeader("Content-Type: text/plain")); in tls() 156 server.enqueue(new MockResponse().setBody("A").addHeader("ETag: v1")); in conditionalCacheHit() 180 server.enqueue(new MockResponse().setBody("A").addHeader("ETag: v1")); in conditionalCacheMiss() 204 .addHeader("Location: /b") in redirect() 205 .addHeader("Test", "Redirect from /a to /b") in redirect() 209 .addHeader("Location: /c") in redirect() 210 .addHeader("Test", "Redirect from /b to /c") in redirect() 237 .addHeader("Location: /b") in redirectWithRedirectsDisabled() 238 .addHeader("Test", "Redirect from /a to /b") in redirectWithRedirectsDisabled() [all …]
|
/external/apache-http/src/org/apache/http/protocol/ |
D | RequestContent.java | 80 request.addHeader(HTTP.CONTENT_LEN, "0"); in process() 89 request.addHeader(HTTP.TRANSFER_ENCODING, HTTP.CHUNK_CODING); in process() 91 request.addHeader(HTTP.CONTENT_LEN, Long.toString(entity.getContentLength())); in process() 96 request.addHeader(entity.getContentType()); in process() 101 request.addHeader(entity.getContentEncoding()); in process()
|
D | ResponseContent.java | 82 response.addHeader(HTTP.TRANSFER_ENCODING, HTTP.CHUNK_CODING); in process() 84 response.addHeader(HTTP.CONTENT_LEN, Long.toString(entity.getContentLength())); in process() 89 response.addHeader(entity.getContentType()); in process() 94 response.addHeader(entity.getContentEncoding()); in process() 101 response.addHeader(HTTP.CONTENT_LEN, "0"); in process()
|
/external/mockwebserver/src/test/java/com/google/mockwebserver/ |
D | MockWebServerTest.java | 83 .addHeader("Cookie: s=square") in testMockResponseAddHeader() 84 .addHeader("Cookie", "a=android"); in testMockResponseAddHeader() 92 .addHeader("Cookie: s=square") in testMockResponseSetHeader() 93 .addHeader("Cookie: a=android") in testMockResponseSetHeader() 94 .addHeader("Cookies: delicious"); in testMockResponseSetHeader() 121 .addHeader("Location: " + server.getUrl("/new-path")) in testRedirect() 163 .addHeader("Transfer-encoding: chunked")); in testNonHexadecimalChunkSize() 179 .addHeader("Content-Length: 4")); in testResponseTimeout()
|
/external/apache-http/src/org/apache/http/message/ |
D | AbstractHttpMessage.java | 98 public void addHeader(final Header header) { in addHeader() method in AbstractHttpMessage 99 this.headergroup.addHeader(header); in addHeader() 103 public void addHeader(final String name, final String value) { in addHeader() method in AbstractHttpMessage 107 this.headergroup.addHeader(new BasicHeader(name, value)); in addHeader()
|
/external/okhttp/mockwebserver/src/test/java/com/squareup/okhttp/mockwebserver/ |
D | MockWebServerTest.java | 86 .addHeader("Cookie: s=square") in testMockResponseAddHeader() 87 .addHeader("Cookie", "a=android"); in testMockResponseAddHeader() 95 .addHeader("Cookie: s=square") in testMockResponseSetHeader() 96 .addHeader("Cookie: a=android") in testMockResponseSetHeader() 97 .addHeader("Cookies: delicious"); in testMockResponseSetHeader() 181 .addHeader("Location: " + server.getUrl("/new-path")) in testRedirect() 223 .addHeader("Transfer-encoding: chunked")); in testNonHexadecimalChunkSize() 239 .addHeader("Content-Length: 4")); in testResponseTimeout()
|
/external/mockwebserver/src/main/java/com/google/mockwebserver/ |
D | MockResponse.java | 107 public MockResponse addHeader(String header) { in addHeader() method in MockResponse 116 public MockResponse addHeader(String name, Object value) { in addHeader() method in MockResponse 117 return addHeader(name + ": " + String.valueOf(value)); in addHeader() 126 return addHeader(name, value); in setHeader()
|
/external/nanohttpd/webserver/src/main/java/fi/iki/elonen/ |
D | SimpleWebServer.java | 303 res.addHeader("Location", uri); in respond() 398 res.addHeader("Content-Range", "bytes 0-0/" + fileLen); in serveFile() 399 res.addHeader("ETag", etag); in serveFile() 419 res.addHeader("Content-Length", "" + dataLen); in serveFile() 420 … res.addHeader("Content-Range", "bytes " + startFrom + "-" + endAt + "/" + fileLen); in serveFile() 421 res.addHeader("ETag", etag); in serveFile() 428 res.addHeader("Content-Length", "" + fileLen); in serveFile() 429 res.addHeader("ETag", etag); in serveFile() 452 res.addHeader("Accept-Ranges", "bytes"); in createResponse() 459 res.addHeader("Accept-Ranges", "bytes"); in createResponse()
|
/external/chromium_org/third_party/WebKit/Source/platform/exported/ |
D | WebHTTPLoadInfo.cpp | 101 static void addHeader(HTTPHeaderMap* map, const WebString& name, const WebString& value) in addHeader() function 112 addHeader(&m_private->requestHeaders, name, value); in addRequestHeader() 118 addHeader(&m_private->responseHeaders, name, value); in addResponseHeader()
|
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/ |
D | MockResponse.java | 100 public MockResponse addHeader(String header) { in addHeader() method in MockResponse 109 public MockResponse addHeader(String name, Object value) { in addHeader() method in MockResponse 110 return addHeader(name + ": " + String.valueOf(value)); in addHeader() 119 return addHeader(name, value); in setHeader()
|
/external/okhttp/samples/static-server/src/main/java/com/squareup/okhttp/sample/ |
D | SampleServer.java | 50 .addHeader("content-type: text/plain; charset=utf-8") in dispatch() 55 .addHeader("content-type: text/plain; charset=utf-8") in dispatch() 74 .addHeader("content-type: text/html; charset=utf-8") in directoryToResponse() 82 .addHeader("content-type: " + contentType(path)); in fileToResponse()
|
/external/apache-http/src/org/apache/http/ |
D | HttpMessage.java | 116 void addHeader(Header header); in addHeader() method 125 void addHeader(String name, String value); in addHeader() method
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/tester/org/apache/http/ |
D | HttpResponseStub.java | 79 @Override public void addHeader(Header header) { in addHeader() method in HttpResponseStub 83 @Override public void addHeader(String s, String s1) { in addHeader() method in HttpResponseStub
|
/external/nanohttpd/websocket/src/main/java/fi/iki/elonen/ |
D | WebSocketResponseHandler.java | 45 …handshakeResponse.addHeader(HEADER_WEBSOCKET_ACCEPT, makeAcceptKey(headers.get(HEADER_WEBSOCKET_KE… in serve() 52 …handshakeResponse.addHeader(HEADER_WEBSOCKET_PROTOCOL, headers.get(HEADER_WEBSOCKET_PROTOCOL).spli… in serve()
|
/external/chromium_org/components/cronet/android/java/src/org/chromium/net/ |
D | UrlRequest.java | 34 public void addHeader(String header, String value); in addHeader() method
|
D | CronetUrlRequest.java | 17 public void addHeader(String header, String value) { in addHeader() method in CronetUrlRequest
|
/external/okhttp/okhttp-apache/src/test/java/com/squareup/okhttp/apache/ |
D | OkApacheClientTest.java | 55 server.enqueue(new MockResponse().setResponseCode(302).addHeader("Location", "/foo")); in redirect() 73 server.enqueue(new MockResponse().addHeader("Foo", "Bar")); in headers() 74 server.enqueue(new MockResponse().addHeader("Foo", "Bar").addHeader("Foo", "Baz")); in headers()
|