Lines Matching defs:headers
180 Headers okRequestHeaders = request.headers();
181 // In Java the request headers are unavailable for a connected HttpURLConnection.
187 Headers okResponseHeaders = response.headers();
213 Map<String, List<String>> headers = new HashMap<String, List<String>>();
214 headers.put(null, Collections.singletonList(statusLine));
215 headers.put("xyzzy", Arrays.asList("bar", "baz"));
216 return headers;
229 Headers okResponseHeaders = response.headers();
246 Map<String, List<String>> headers = new HashMap<String, List<String>>();
247 headers.put(null, Collections.singletonList(statusLine));
248 headers.put("xyzzy", Arrays.asList("bar", "baz"));
249 return headers;
287 Headers okResponseHeaders = response.headers();
308 Headers okRequestHeaders = request.headers();
322 Headers okRequestHeaders = request.headers();
342 Headers okRequestHeaders = request.headers();
464 // Check immutability of the headers Map.
476 // Check retrieval of headers by index.
480 // implementation. It's probably important that the relative ordering of the headers is
486 // Check the ordering of the headers set by app code.
490 // There may be some additional headers provided by the implementation.
505 private void assertHeadersContainsMapping(Map<String, List<String>> headers, String expectedKey,
507 assertTrue(headers.containsKey(expectedKey));
508 assertEquals(newSet(expectedValues), newSet(headers.get(expectedKey)));