Home
last modified time | relevance | path

Searched refs:responseHeaders (Results 1 – 9 of 9) sorted by relevance

/libcore/luni/src/test/java/libcore/java/net/
DCookiesMCompatibilityTest.java38 Map<String, List<String>> responseHeaders = Collections.singletonMap("Set-Cookie", in testCookiesWithoutLeadingPeriod() local
42 cm.put(uri, responseHeaders); in testCookiesWithoutLeadingPeriod()
46 responseHeaders); in testCookiesWithoutLeadingPeriod()
55 Map<String, List<String>> responseHeaders = Collections.singletonMap("Set-Cookie", in testCookiesWithLeadingPeriod() local
57 cm.put(uri, responseHeaders); in testCookiesWithLeadingPeriod()
60 responseHeaders); in testCookiesWithLeadingPeriod()
DCookiesTest.java38 Map<String, List<String>> responseHeaders = Collections.singletonMap("Set-Cookie", in testCookiesWithLeadingPeriod() local
42 cm.put(uri, responseHeaders); in testCookiesWithLeadingPeriod()
46 responseHeaders); in testCookiesWithLeadingPeriod()
DAbstractCookiesTest.java1248 Map<String, List<String>> responseHeaders = new LinkedHashMap<String, List<String>>(); in addCookie() local
1254 responseHeaders.put(cookies[i][0], fields); in addCookie()
1256 return responseHeaders; in addCookie()
1260 … Map<String, List<String>> responseHeaders, CookiePolicy policy) in store() argument
1267 manager.put(uri, responseHeaders); in store()
1307 Map<String, List<String>> responseHeaders = addCookie(new String[][] { in test_Put_Get_LURI_LMap() local
1310 new String[][] { cookies[0], cookies[1] }, responseHeaders, in test_Put_Get_LURI_LMap()
1331 responseHeaders = addCookie(new String[][] { cookies[2] }); in test_Put_Get_LURI_LMap()
1332 manager = store(new String[][] { cookies[2] }, responseHeaders, null); in test_Put_Get_LURI_LMap()
1339 responseHeaders = addCookie(new String[][] { cookies[3] }); in test_Put_Get_LURI_LMap()
[all …]
DOldCookieHandlerTest.java88 public void put(URI uri, Map responseHeaders) throws IOException { in put() argument
DURLConnectionTest.java306 @Test public void responseHeaders() throws IOException, InterruptedException { in responseHeaders() method in URLConnectionTest
319 Map<String, List<String>> responseHeaders = urlConnection.getHeaderFields(); in responseHeaders() local
320 assertEquals(Arrays.asList("HTTP/1.0 200 Fantastic"), responseHeaders.get(null)); in responseHeaders()
321 assertEquals(newSet("c", "e"), new HashSet<String>(responseHeaders.get("A"))); in responseHeaders()
322 assertEquals(newSet("c", "e"), new HashSet<String>(responseHeaders.get("a"))); in responseHeaders()
324 responseHeaders.put("N", Arrays.asList("o")); in responseHeaders()
329 responseHeaders.get("A").add("f"); in responseHeaders()
/libcore/ojluni/src/main/java/java/net/
DCookieManager.java266 put(URI uri, Map<String, List<String>> responseHeaders) in put() argument
270 if (uri == null || responseHeaders == null) { in put()
280 for (String headerKey : responseHeaders.keySet()) { in put()
292 for (String headerValue : responseHeaders.get(headerKey)) { in put()
DCookieHandler.java148 put(URI uri, Map<String, List<String>> responseHeaders) in put() argument
/libcore/benchmarks/src/benchmarks/regression/
DURLConnectionBenchmark.java34 @Param private ResponseHeaders responseHeaders; field in URLConnectionBenchmark
56 responseHeaders.apply(response); in setUp()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DCookieHandlerTest.java57 public void put(URI uri, Map responseHeaders) throws IOException { in put() argument