/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/ |
CookieManagerTest.java | 81 Map<String, List<String>> responseHeaders = new TreeMap<String, List<String>>(); 87 responseHeaders.put(cookies[i][0], fields); 89 return responseHeaders; 93 Map<String, List<String>> responseHeaders, CookiePolicy policy) 100 manager.put(uri, responseHeaders); 139 Map<String, List<String>> responseHeaders = addCookie(new String[][] { 142 new String[][] { cookies[0], cookies[1] }, responseHeaders, 160 responseHeaders = addCookie(new String[][] { cookies[2] }); 161 manager = store(new String[][] { cookies[2] }, responseHeaders, null); 168 responseHeaders = addCookie(new String[][] { cookies[3] }) [all...] |
CookieHandlerTest.java | 57 public void put(URI uri, Map responseHeaders) throws IOException {
|
/external/chromium_org/third_party/WebKit/Source/platform/network/ |
ResourceLoadInfo.h | 44 HTTPHeaderMap responseHeaders;
|
/external/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
HttpEngine.java | 127 ResponseHeaders responseHeaders; 133 private ResponseHeaders cachedResponseHeaders; 202 setResponse(new ResponseHeaders(uri, rawResponseHeaders), cacheResponse.getBody()); 238 cachedResponseHeaders = new ResponseHeaders(uri, rawResponseHeaders); 331 private void setResponse(ResponseHeaders headers, InputStream body) throws IOException { 335 this.responseHeaders = headers; 354 return responseHeaders != null; 361 public final ResponseHeaders getResponseHeaders() { 362 if (responseHeaders == null) [all...] |
HttpAuthenticator.java | 92 RawHeaders responseHeaders, RawHeaders successorRequestHeaders, Proxy proxy, URL url) 105 List<Challenge> challenges = parseChallenges(responseHeaders, responseField); 109 Credential credential = responseHeaders.getResponseCode() == HTTP_PROXY_AUTH 124 private static List<Challenge> parseChallenges(RawHeaders responseHeaders, 132 for (int h = 0; h < responseHeaders.length(); h++) { 133 if (!challengeHeader.equalsIgnoreCase(responseHeaders.getFieldName(h))) { 136 String value = responseHeaders.getValue(h);
|
HttpTransport.java | 134 @Override public ResponseHeaders readResponseHeaders() throws IOException { 139 ResponseHeaders headers = new ResponseHeaders(httpEngine.uri, rawHeaders); 161 if (httpEngine.responseHeaders != null && httpEngine.responseHeaders.hasConnectionClose()) { 205 if (httpEngine.responseHeaders.isChunked()) { 209 if (httpEngine.responseHeaders.getContentLength() != -1) { 211 httpEngine.responseHeaders.getContentLength()); 468 RawHeaders rawResponseHeaders = httpEngine.responseHeaders.getHeaders();
|
/external/okhttp/src/main/java/com/squareup/okhttp/internal/spdy/ |
SpdyStream.java | 86 private List<String> responseHeaders; 135 if ((in.finished || in.closed) && (out.finished || out.closed) && responseHeaders != null) { 161 while (responseHeaders == null && rstStatusCode == -1) { 164 if (responseHeaders != null) { 165 return responseHeaders; 193 public void reply(List<String> responseHeaders, boolean out) throws IOException { 197 if (responseHeaders == null) { 198 throw new NullPointerException("responseHeaders == null"); 203 if (this.responseHeaders != null) { 206 this.responseHeaders = responseHeaders [all...] |
/frameworks/volley/src/com/android/volley/ |
Cache.java | 84 public Map<String, String> responseHeaders = Collections.emptyMap();
|
CacheDispatcher.java | 120 new NetworkResponse(entry.data, entry.responseHeaders));
|
/libcore/luni/src/main/java/java/net/ |
CookieHandler.java | 59 * Sets all cookies of a specific URI in the {@code responseHeaders} into 64 * @param responseHeaders 69 public abstract void put(URI uri, Map<String, List<String>> responseHeaders)
|
CookieManager.java | 148 * Sets cookies according to uri and responseHeaders 152 * @param responseHeaders 158 public void put(URI uri, Map<String, List<String>> responseHeaders) throws IOException { 159 if (uri == null || responseHeaders == null) { 164 List<HttpCookie> cookies = parseCookie(responseHeaders); 206 private static List<HttpCookie> parseCookie(Map<String, List<String>> responseHeaders) { 208 for (Map.Entry<String, List<String>> entry : responseHeaders.entrySet()) {
|
/external/okhttp/src/test/java/com/squareup/okhttp/internal/spdy/ |
SpdyServer.java | 110 List<String> responseHeaders = 112 stream.reply(responseHeaders, true); 120 List<String> responseHeaders = 123 stream.reply(responseHeaders, true);
|
/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/ |
CookieManagerTest.java | 79 List<Pair<String, String>> responseHeaders = new ArrayList<Pair<String, String>>(); 80 responseHeaders.add( 82 url = webServer.setResponse(path, responseStr, responseHeaders); 97 responseHeaders = new ArrayList<Pair<String, String>>(); 98 responseHeaders.add( 100 url = webServer.setResponse(path, responseStr, responseHeaders);
|
/external/chromium_org/net/test/android/javatests/src/org/chromium/net/test/util/ |
TestWebServer.java | 83 Response(byte[] resposneData, List<Pair<String, String>> responseHeaders, 87 mResponseHeaders = responseHeaders == null ? 88 new ArrayList<Pair<String, String>>() : responseHeaders; 166 List<Pair<String, String>> responseHeaders, Runnable responseAction, 172 responseData, responseHeaders, isRedirect, responseAction)); 197 * @param responseHeaders Any additional headers that should be returned along with the 204 List<Pair<String, String>> responseHeaders) { 205 return setResponseInternal(requestPath, responseString.getBytes(), responseHeaders, null, 216 * @param responseHeaders Any additional headers that should be returned along with the 225 String requestPath, String responseString, List<Pair<String, String>> responseHeaders, [all...] |
/external/okhttp/src/main/java/com/squareup/okhttp/ |
HttpResponseCache.java | 28 import com.squareup.okhttp.internal.http.ResponseHeaders; 250 ResponseHeaders response = httpEngine.getResponseHeaders(); 293 ResponseHeaders response = httpEngine.getResponseHeaders(); 457 private final RawHeaders responseHeaders; 522 responseHeaders = new RawHeaders(); 523 responseHeaders.setStatusLine(reader.readLine()); 526 responseHeaders.addLine(reader.readLine()); 552 this.responseHeaders = RawHeaders.fromMultimap(httpConnection.getHeaderFields(), true); 598 writer.write(responseHeaders.getStatusLine() + '\n'); 599 writer.write(Integer.toString(responseHeaders.length()) + '\n') [all...] |
Connection.java | 311 RawHeaders responseHeaders = RawHeaders.fromBytes(in); 313 switch (responseHeaders.getResponseCode()) { 320 route.address.authenticator, HTTP_PROXY_AUTH, responseHeaders, requestHeaders, 329 "Unexpected response code for CONNECT: " + responseHeaders.getResponseCode());
|
/frameworks/volley/src/com/android/volley/toolbox/ |
BasicNetwork.java | 88 Map<String, String> responseHeaders = new HashMap<String, String>(); 97 responseHeaders = convertHeaders(httpResponse.getAllHeaders()); 101 request.getCacheEntry().data, responseHeaders, true); 112 return new NetworkResponse(statusCode, responseContents, responseHeaders, false); 130 responseHeaders, false);
|
DiskBasedCache.java | 353 public Map<String, String> responseHeaders; 369 this.responseHeaders = entry.responseHeaders; 392 entry.responseHeaders = readStringStringMap(is); 406 e.responseHeaders = responseHeaders; 422 writeStringStringMap(responseHeaders, os);
|
/libcore/benchmarks/src/benchmarks/regression/ |
URLConnectionBenchmark.java | 36 @Param private ResponseHeaders responseHeaders; 58 responseHeaders.apply(response); 106 enum ResponseHeaders {
|
/frameworks/volley/tests/src/com/android/volley/toolbox/ |
DiskBasedCacheTest.java | 39 e.responseHeaders = new HashMap<String, String>(); 40 e.responseHeaders.put("fruit", "banana"); 53 assertEquals(first.responseHeaders, second.responseHeaders);
|
HttpHeaderParserTest.java | 64 assertNotNull(entry.responseHeaders); 65 assertEquals(1, entry.responseHeaders.size()); 66 assertEquals("42", entry.responseHeaders.get("MyCustomHeader"));
|
/libcore/luni/src/test/java/libcore/java/net/ |
OldCookieHandlerTest.java | 86 public void put(URI uri, Map responseHeaders) throws IOException {
|
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/ |
NetworkRequest.js | 547 get responseHeaders() 552 set responseHeaders(x) 569 for (var i = 0; i < this.responseHeaders.length; ++i) 570 this._responseHeadersText += this.responseHeaders[i].name + ": " + this.responseHeaders[i].value + "\r\n"; 598 this._sortedResponseHeaders = this.responseHeaders.slice(); 611 value = this._headerValue(this.responseHeaders, headerName);
|
/external/chromium_org/chrome/browser/resources/gaia_auth/ |
background.js | 46 var headers = details.responseHeaders; 53 return {responseHeaders: headers}; 56 ['blocking', 'responseHeaders']);
|
/external/chromium_org/third_party/WebKit/Source/platform/exported/ |
WebHTTPLoadInfo.cpp | 120 addHeader(&m_private->responseHeaders, name, value);
|