Searched refs:headers (Results 1 – 5 of 5) sorted by relevance
/libcore/support/src/test/java/tests/support/ |
D | Support_TestWebServer.java | 269 private final Map<String, String> headers; field in Support_TestWebServer.Request 272 public Request(String path, Map<String, String> headers) { in Request() argument 274 this.headers = new LinkedHashMap<String, String>(headers); in Request() 282 return headers; in getHeaders() 322 private Map<String, String> headers = new LinkedHashMap<String, String>(); field in Support_TestWebServer.Worker 516 headers.put(headerName, headerValue); in parseHeader() 549 String lengthString = headers.get(requestHeaders[REQ_CONTENT_LENGTH]); in readContent() 579 pathToRequest().put(path, new Request(path, headers)); in handleClient() 583 if (headers.get(requestHeaders[REQ_CONTENT_LENGTH]) != null) { in handleClient() 597 headers.clear(); in handleClient() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/ |
D | URLConnectionTest.java | 301 Map<String, String> headers = server.pathToRequest().get(path).getHeaders(); 302 assertNull(headers.get("Accept")); 303 assertEquals("application/x-www-form-urlencoded", headers.get("Content-Type")); 304 assertEquals("5", headers.get("Content-Length")); 305 assertEquals("localhost:" + port, headers.get("Host")); 780 Map<String, List<String>> headers = uc2.getHeaderFields(); 781 assertNotNull(headers); 783 List<String> list = headers.get("content-type"); 785 list = headers.get("Content-Type"); 788 list = headers.get("Content-type"); [all …]
|
/libcore/tools/upstream/src/main/java/libcore/ |
D | CompareUpstreams.java | 161 List<String> headers = new ArrayList<>(); in run() local 162 headers.addAll(Arrays.asList( in run() 165 headers.add(upstream.name()); in run() 167 headers.add("diff"); in run() 168 printTsv(out, headers); in run()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | URLConnectionTest.java | 1112 List<String> headers = connect1.getHeaders(); in proxyConnectIncludesProxyHeadersOnly() local 1113 assertContainsNoneMatching(headers, "Private.*"); in proxyConnectIncludesProxyHeadersOnly() 1114 assertContainsNoneMatching(headers, "Proxy\\-Authorization.*"); in proxyConnectIncludesProxyHeadersOnly() 1116 assertContains(headers, "Host: android.com:443"); in proxyConnectIncludesProxyHeadersOnly() 1117 assertContains(headers, "Proxy-Connection: Keep-Alive"); in proxyConnectIncludesProxyHeadersOnly() 1122 List<String> headers = connect2.getHeaders(); in proxyConnectIncludesProxyHeadersOnly() local 1123 assertContainsNoneMatching(headers, "Private.*"); in proxyConnectIncludesProxyHeadersOnly() 1126 assertContains(headers, "Host: android.com:443"); in proxyConnectIncludesProxyHeadersOnly() 1127 assertContains(headers, "Proxy-Connection: Keep-Alive"); in proxyConnectIncludesProxyHeadersOnly()
|
D | AbstractCookiesTest.java | 761 Map<String, List<String>> headers = connection.getHeaderFields(); in get() local 763 return headers; in get() 766 private static Map<String, List<String>> cookieHeaders(String... headers) { in cookieHeaders() argument 767 return Collections.singletonMap("Set-Cookie", Arrays.asList(headers)); in cookieHeaders()
|