Home
last modified time | relevance | path

Searched refs:getHeaderField (Results 1 – 10 of 10) sorted by relevance

/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/internal/net/www/protocol/file/
DFileURLConnectionTest.java73 assertEquals(conn.getContentType(), conn.getHeaderField("content-type")) ; in testHeaderFunctions()
79 assertEquals(conn.getContentType(), conn.getHeaderField("content-type")) ; in testHeaderFunctions()
80 … assertEquals(Integer.toString(conn.getContentLength()), conn.getHeaderField("content-length")) ; in testHeaderFunctions()
81 assertEquals(conn.getHeaderField(0), conn.getHeaderField("content-type")); in testHeaderFunctions()
82 assertEquals(conn.getHeaderField(1), conn.getHeaderField("content-length")); in testHeaderFunctions()
83 assertEquals(conn.getHeaderField(2), conn.getHeaderField("last-modified")); in testHeaderFunctions()
93 assertNull(urlConnection.getHeaderField(Integer.MIN_VALUE)); in testHeader_BoundaryCheck()
94 assertNull(urlConnection.getHeaderField(Integer.MAX_VALUE)); in testHeader_BoundaryCheck()
97 assertNull(urlConnection.getHeaderField(null)); in testHeader_BoundaryCheck()
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/
DURLConnectionTest.java394 hf = uc.getHeaderField("Content-Encoding");
400 hf = uc.getHeaderField("Content-Length");
406 hf = uc.getHeaderField("Content-Type");
411 hf = uc.getHeaderField("content-type");
416 hf = uc.getHeaderField("Date");
422 hf = uc.getHeaderField("Expires");
428 hf = uc.getHeaderField("SERVER");
434 hf = uc.getHeaderField("Last-Modified");
442 hf = uc.getHeaderField("accept-ranges");
448 hf = uc.getHeaderField("DoesNotExist");
/external/apache-harmony/support/src/test/java/tests/support/
DSupport_URLConnector.java78 public String getHeaderField(int index) throws IOException { in getHeaderField() method in Support_URLConnector
79 return ((HttpURLConnection) instance).getHeaderField(index); in getHeaderField()
DSupport_HttpConnector.java43 public String getHeaderField(int index) throws IOException; in getHeaderField() method
DSupport_HttpTests.java127 String value = connector.getHeaderField(i); in runTests()
/external/okhttp/src/main/java/libcore/net/http/
DHttpsURLConnectionImpl.java225 public String getHeaderField(int pos) { in getHeaderField() method in HttpsURLConnectionImpl
226 return delegate.getHeaderField(pos); in getHeaderField()
245 public String getHeaderField(String key) { in getHeaderField() method in HttpsURLConnectionImpl
246 return delegate.getHeaderField(key); in getHeaderField()
DHttpURLConnectionImpl.java120 @Override public final String getHeaderField(int position) { in getHeaderField() method in HttpURLConnectionImpl
133 @Override public final String getHeaderField(String fieldName) { in getHeaderField() method in HttpURLConnectionImpl
375 String location = getHeaderField("Location"); in processResponseHeaders()
/external/oauth/core/src/main/java/net/oauth/client/
DURLConnectionResponse.java79 for (int i = 0; (value = connection.getHeaderField(i)) != null; ++i) { in getHeaders()
111 for (int i = 0; (value = connection.getHeaderField(i)) != null; ++i) { in dump()
/external/okhttp/src/main/java/com/squareup/okhttp/
DOkHttpConnection.java639 String response = getHeaderField(0); in getResponseCode()
/external/okhttp/src/test/java/libcore/net/http/
DURLConnectionTest.java214 assertEquals("HTTP/1.0 200 Fantastic", urlConnection.getHeaderField(null)); in testResponseHeaders()
230 assertEquals("c", urlConnection.getHeaderField(0)); in testResponseHeaders()
232 assertEquals("d", urlConnection.getHeaderField(1)); in testResponseHeaders()
234 assertEquals("e", urlConnection.getHeaderField(2)); in testResponseHeaders()
402 assertEquals("def", conn.getHeaderField("abc")); in testGetResponseCodeNoResponseBody()