/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/ |
D | ResponseCacheTest.java | 185 .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in assertCached() 186 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in assertCached() 189 .addHeader("WWW-Authenticate: challenge"); in assertCached() 191 mockResponse.addHeader("Proxy-Authenticate: Basic realm=\"protected area\""); in assertCached() 193 mockResponse.addHeader("WWW-Authenticate: Basic realm=\"protected area\""); in assertCached() 232 .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in testResponseCaching() 233 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in testResponseCaching() 261 .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in secureResponseCaching() 262 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in secureResponseCaching() 291 .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in responseCachingAndRedirects() [all …]
|
D | JavaApiConverterTest.java | 355 .addHeader("A", "c") in createJavaUrlConnection_responseHeadersOk() 356 .addHeader("B", "d") in createJavaUrlConnection_responseHeadersOk() 357 .addHeader("A", "e") in createJavaUrlConnection_responseHeadersOk() 358 .addHeader("Content-Length", Long.toString(responseBody.contentLength())) in createJavaUrlConnection_responseHeadersOk() 510 .addHeader("key1", "value1_1") in createJavaCacheResponse_httpGet() 511 .addHeader("key2", "value2") in createJavaCacheResponse_httpGet() 512 .addHeader("key1", "value1_2") in createJavaCacheResponse_httpGet() 534 .addHeader("key1", "value1_1") in createJavaCacheResponse_httpPost() 535 .addHeader("key2", "value2") in createJavaCacheResponse_httpPost() 536 .addHeader("key1", "value1_2") in createJavaCacheResponse_httpPost() [all …]
|
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/ |
D | UrlConnectionCacheTest.java | 168 .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in assertCached() 169 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in assertCached() 172 .addHeader("WWW-Authenticate: challenge"); in assertCached() 174 response.addHeader("Proxy-Authenticate: Basic realm=\"protected area\""); in assertCached() 176 response.addHeader("WWW-Authenticate: Basic realm=\"protected area\""); in assertCached() 216 new MockResponse().addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in testResponseCaching() 217 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in testResponseCaching() 250 server.enqueue(new MockResponse().addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in secureResponseCaching() 251 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in secureResponseCaching() 283 server.enqueue(new MockResponse().addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in responseCachingAndRedirects() [all …]
|
D | OkUrlFactoryTest.java | 73 .addHeader("Last-Modified: " + formatDate(0, TimeUnit.SECONDS)) in conditionalCacheHitResponseSourceHeaders() 74 .addHeader("Cache-Control: max-age=0") in conditionalCacheHitResponseSourceHeaders() 89 .addHeader("Last-Modified: " + formatDate(0, TimeUnit.SECONDS)) in conditionalCacheMissResponseSourceHeaders() 90 .addHeader("Cache-Control: max-age=0") in conditionalCacheMissResponseSourceHeaders() 105 .addHeader("Expires: " + formatDate(2, TimeUnit.HOURS)) in cacheResponseSourceHeaders() 133 .addHeader("Location: /b") in setInstanceFollowRedirectsFalse()
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | CacheTest.java | 159 .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in assertCached() 160 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in assertCached() 163 .addHeader("WWW-Authenticate: challenge"); in assertCached() 165 mockResponse.addHeader("Proxy-Authenticate: Basic realm=\"protected area\""); in assertCached() 167 mockResponse.addHeader("WWW-Authenticate: Basic realm=\"protected area\""); in assertCached() 212 .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in testResponseCaching() 213 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in testResponseCaching() 249 .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in secureResponseCaching() 250 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in secureResponseCaching() 284 .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in responseCachingAndRedirects() [all …]
|
D | CallTest.java | 111 server.enqueue(new MockResponse().setBody("abc").addHeader("Content-Type: text/plain")); in get() 196 server.enqueue(new MockResponse().addHeader("Content-Type: text/plain")); in head() 492 .addHeader("Content-Type: text/plain")); in illegalToExecuteTwice() 522 .addHeader("Content-Type: text/plain")); in illegalToExecuteTwice_Async() 552 .addHeader("Content-Type: text/plain")); in get_Async() 770 .addHeader("Content-Type: text/plain")); in tls() 783 .addHeader("Content-Type: text/plain")); in tls_Async() 924 … server.enqueue(new MockResponse().setResponseCode(301).addHeader("Location: http://square.com")); in setFollowSslRedirectsFalse() 1030 .addHeader("ETag: v1") in cacheHit() 1031 .addHeader("Cache-Control: max-age=60") in cacheHit() [all …]
|
D | URLConnectionTest.java | 200 .addHeader("A: c") in responseHeaders() 201 .addHeader("B: d") in responseHeaders() 202 .addHeader("A: e") in responseHeaders() 489 server.enqueue(new MockResponse().addHeader("abc: def")); in getResponseCodeNoResponseBody() 710 .addHeader("Content-Length: 3")); in contentDisagreesWithContentLengthHeaderBodyTooLong() 773 mockResponse.addHeader("Transfer-encoding: chunked"); in contentDisagreesWithChunkedHeaderBodyTooLong() 790 mockResponse.addHeader("Transfer-encoding: chunked"); in contentDisagreesWithChunkedHeaderBodyTooShort() 943 .addHeader("Proxy-Authenticate: Basic realm=\"localhost\"")); in proxyAuthenticateOnConnect() 1097 MockResponse response = new MockResponse().addHeader("WWW-Authenticate: challenge") in unauthorizedResponseHandling() 1116 .addHeader("Transfer-encoding: chunked")); in nonHexChunkSize() [all …]
|
D | InterceptorTest.java | 180 .addHeader("Content-Encoding: gzip")); in networkInterceptorsObserveNetworkHeaders() 229 .addHeader("OkHttp-Intercepted", "yep") in rewriteRequestToServer() 236 .addHeader("Original-Header", "foo") in rewriteRequestToServer() 259 .addHeader("Original-Header: foo") in rewriteResponseFromServer() 267 .addHeader("OkHttp-Intercepted", "yep") in rewriteResponseFromServer() 297 .addHeader("Request-Interceptor", "Android") // 1. Added first. in multipleInterceptors() 300 .addHeader("Response-Interceptor", "Donut") // 4. Added last. in multipleInterceptors() 308 .addHeader("Request-Interceptor", "Bob") // 2. Added second. in multipleInterceptors() 311 .addHeader("Response-Interceptor", "Cupcake") // 3. Added third. in multipleInterceptors() 344 .addHeader("OkHttp-Intercepted", "yep") in asyncInterceptors()
|
/external/jetty/src/java/org/eclipse/jetty/websocket/ |
D | WebSocketServletConnectionD00.java | 69 response.addHeader("Connection","Upgrade"); in handshake() 72 response.addHeader("Sec-WebSocket-Origin",origin); in handshake() 74 … response.addHeader("Sec-WebSocket-Location",(request.isSecure()?"wss://":"ws://") + host + uri); in handshake() 77 response.addHeader("Sec-WebSocket-Protocol",subprotocol); in handshake() 84 response.addHeader("Connection","Upgrade"); in handshake() 85 response.addHeader("WebSocket-Origin",origin); in handshake() 86 … response.addHeader("WebSocket-Location",(request.isSecure()?"wss://":"ws://") + host + uri); in handshake() 89 response.addHeader("WebSocket-Protocol",subprotocol); in handshake()
|
D | WebSocketServletConnectionRFC6455.java | 45 response.addHeader("Connection","Upgrade"); in handshake() 46 response.addHeader("Sec-WebSocket-Accept",hashKey(key)); in handshake() 49 response.addHeader("Sec-WebSocket-Protocol",subprotocol); in handshake() 54 response.addHeader("Sec-WebSocket-Extensions",ext.getParameterizedName()); in handshake()
|
D | WebSocketServletConnectionD08.java | 45 response.addHeader("Connection","Upgrade"); in handshake() 46 response.addHeader("Sec-WebSocket-Accept",hashKey(key)); in handshake() 49 response.addHeader("Sec-WebSocket-Protocol",subprotocol); in handshake() 54 response.addHeader("Sec-WebSocket-Extensions",ext.getParameterizedName()); in handshake()
|
D | WebSocketServletConnectionD06.java | 44 response.addHeader("Connection","Upgrade"); in handshake() 45 response.addHeader("Sec-WebSocket-Accept",hashKey(key)); in handshake() 48 response.addHeader("Sec-WebSocket-Protocol",subprotocol); in handshake()
|
/external/nanohttpd/core/src/test/java/fi/iki/elonen/integration/ |
D | GZipIntegrationTest.java | 86 request.addHeader("Accept-encoding", "gzip"); in contentEncodingShouldBeAddedToFixedLengthResponses() 98 request.addHeader("Accept-encoding", "gzip"); in contentEncodingShouldBeAddedToChunkedResponses() 109 request.addHeader("Accept-encoding", "deflate,gzip"); in shouldFindCorrectAcceptEncodingAmongMany() 120 request.addHeader("Accept-encoding", "gzip"); in contentLengthShouldBeRemovedFromZippedResponses() 130 request.addHeader("Accept-encoding", "gzip"); in fixedLengthContentIsEncodedProperly() 140 request.addHeader("Accept-encoding", "gzip"); in chunkedContentIsEncodedProperly() 158 … testServer.response.addHeader("Content-Length", "" + ("This is a test".getBytes("UTF-8").length)); in contentShouldNotBeGzippedIfContentLengthIsAddedManually() 160 request.addHeader("Accept-encoding", "gzip"); in contentShouldNotBeGzippedIfContentLengthIsAddedManually()
|
/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/nanohttpd/webserver/src/main/java/fi/iki/elonen/ |
D | SimpleWebServer.java | 355 response.addHeader("Accept-Ranges", "bytes"); in newFixedLengthResponse() 403 res.addHeader("Location", uri); in defaultRespond() 516 res.addHeader("ETag", etag); in serveFile() 530 res.addHeader("Accept-Ranges", "bytes"); in serveFile() 531 res.addHeader("Content-Length", "" + newLen); in serveFile() 532 … res.addHeader("Content-Range", "bytes " + startFrom + "-" + endAt + "/" + fileLen); in serveFile() 533 res.addHeader("ETag", etag); in serveFile() 541 res.addHeader("Content-Range", "bytes */" + fileLen); in serveFile() 542 res.addHeader("ETag", etag); in serveFile() 548 res.addHeader("ETag", etag); in serveFile() [all …]
|
/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 | 66 .addHeader("Cookie: s=square") in mockResponseAddHeader() 67 .addHeader("Cookie", "a=android"); in mockResponseAddHeader() 74 .addHeader("Cookie: s=square") in mockResponseSetHeader() 75 .addHeader("Cookie: a=android") in mockResponseSetHeader() 76 .addHeader("Cookies: delicious"); in mockResponseSetHeader() 100 .addHeader("Location: " + server.getUrl("/new-path")) in redirect() 140 .addHeader("Transfer-encoding: chunked")); in nonHexadecimalChunkSize() 155 .addHeader("Content-Length: 4")); in responseTimeout()
|
/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/okhttp/samples/static-server/src/main/java/com/squareup/okhttp/sample/ |
D | SampleServer.java | 52 .addHeader("content-type: text/plain; charset=utf-8") in dispatch() 57 .addHeader("content-type: text/plain; charset=utf-8") in dispatch() 76 .addHeader("content-type: text/html; charset=utf-8") in directoryToResponse() 84 .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/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/ |
D | AccessHeaders.java | 30 .addHeader("Accept", "application/json; q=0.5") in run() 31 .addHeader("Accept", "application/vnd.github.v3+json") in run()
|
/external/jetty/src/java/org/eclipse/jetty/http/gzip/ |
D | AbstractCompressedStream.java | 246 addHeader("Vary",_vary); in doCompress() 281 addHeader("Vary",_vary); in doNotCompress() 369 protected void addHeader(String name,String value) in addHeader() method in AbstractCompressedStream 371 _response.addHeader(name, value); in addHeader()
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/ |
D | RecordingOkAuthenticator.java | 48 .addHeader("Authorization", credential) in authenticate() 56 .addHeader("Proxy-Authorization", credential) in authenticateProxy()
|