Searched refs:header (Results 1 - 10 of 10) sorted by relevance

/libcore/luni/src/main/java/java/util/
H A DLinkedHashMap.java53 * The first real entry is header.nxt, and the last is header.prv.
54 * If the map is empty, header.nxt == header && header.prv == header.
56 transient LinkedEntry<K, V> header; field in class:LinkedHashMap
137 header = new LinkedEntry<K, V>();
147 /** Create the header entry */
167 LinkedEntry<K, V> eldest = header
[all...]
/libcore/luni/src/main/java/java/util/zip/
H A DGZIPInputStream.java57 * The magic header for the GZIP format.
97 byte[] header = new byte[10];
98 readFully(header, 0, header.length);
99 short magic = Memory.peekShort(header, 0, ByteOrder.LITTLE_ENDIAN);
103 int flags = header[3];
106 crc.update(header, 0, header.length);
109 readFully(header, 0, 2);
111 crc.update(header,
[all...]
/libcore/support/src/test/java/tests/http/
H A DMockResponse.java83 public MockResponse addHeader(String header) { argument
84 headers.add(header);
H A DMockWebServer.java345 String header;
346 while (!(header = readAsciiUntilCrlf(in)).isEmpty()) {
347 headers.add(header);
348 String lowercaseHeader = header.toLowerCase();
350 contentLength = Integer.parseInt(header.substring(15).trim());
422 for (String header : response.getHeaders()) {
423 out.write((header + "\r\n").getBytes(ASCII));
/libcore/luni/src/main/java/java/net/
H A DURLConnection.java180 * header field "Content-Type". If none is found it will guess the content
208 * header field "Content-Type". If none is found it will guess the content
239 * Returns the content encoding type specified by the response header field
242 * @return the value of the response header field {@code content-encoding}.
310 * Returns the content length in bytes specified by the response header field
313 * @return the value of the response header field {@code content-length}.
320 * Returns the MIME-type of the content specified by the response header field
323 * @return the value of the response header field {@code content-type}.
395 * @return the value of the response header field {@code expires}.
417 * Returns the header valu
[all...]
H A DHttpCookie.java51 * CommentURL} attributes and renames the header from {@code Set-Cookie}
190 * set-cookie or set-cookie2 header format as specified in
193 * header, the returned object is a list.
195 * @param header
196 * a set-cookie or set-cookie2 header.
203 * if header is null
205 public static List<HttpCookie> parse(String header) { argument
206 return new CookieParser(header).parse();
701 * {@code Cookie} header line in an HTTP request.
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
H A DURLConnectionTest.java653 assertEquals("Long value returned for header field 'Content-Encoding':",
656 assertEquals("Long value returned for header field 'Content-Length': ",
659 assertEquals("Long value returned for header field 'Content-Type': ",
662 assertEquals("Long value returned for header field 'content-type': ",
665 assertTrue("Wrong value returned for header field 'Date': " + hf,
668 assertEquals("Long value returned for header field 'SERVER': ",
671 assertEquals("Long value returned for header field 'Last-Modified': ",
687 assertTrue("Could not find header field containing \""
698 assertTrue("Could not find header field containing \""
717 "Could not find header fiel
1069 assertContentTypeEquals(String encoding, String expected, String header) argument
[all...]
/libcore/luni/src/test/java/libcore/java/net/
H A DCookiesTest.java298 for (String header : redirectTarget.takeRequest().getHeaders()) {
299 if (header.startsWith("Cookie")) {
300 fail(header);
H A DURLConnectionTest.java161 fail("Set header after connect");
166 fail("Set header after connect");
1111 * requested data+chunk header size. Although setChunkedStreamingMode()
1165 // no authorization header for the request...
1337 // no authorization header for the first request...
1341 // ...but the three requests that follow include an authorization header
1375 // no authorization header for the first request...
1379 // ...but the three requests that follow requests include an authorization header
1709 server.enqueue(new MockResponse()); // server doesn't honor the connection: close header!
2294 private void assertContains(List<String> headers, String header) { argument
[all...]
/libcore/support/src/test/java/tests/resources/
H A Djunit4-4.3.1.jarMETA-INF/ META-INF/MANIFEST.MF junit/ junit/extensions/ junit/framework/ junit/runner/ junit/textui/ org/ ...

Completed in 224 milliseconds