Searched refs:httpConnection (Results 1 - 3 of 3) sorted by relevance

/libcore/luni/src/main/java/java/net/
H A DExtendedResponseCache.java50 void update(CacheResponse conditionalCacheHit, HttpURLConnection httpConnection); argument
/libcore/luni/src/main/java/libcore/net/http/
H A DHttpResponseCache.java123 HttpURLConnection httpConnection = (HttpURLConnection) urlConnection;
124 String requestMethod = httpConnection.getRequestMethod();
145 HttpEngine httpEngine = getHttpEngine(httpConnection);
158 Entry entry = new Entry(uri, varyHeaders, httpConnection);
175 * with the headers from {@code httpConnection}. The cached response body is
179 public void update(CacheResponse conditionalCacheHit, HttpURLConnection httpConnection) { argument
180 HttpEngine httpEngine = getHttpEngine(httpConnection);
185 Entry entry = new Entry(uri, varyHeaders, httpConnection);
211 private HttpEngine getHttpEngine(HttpURLConnection httpConnection) { argument
212 if (httpConnection instanceo
405 Entry(URI uri, RawHeaders varyHeaders, HttpURLConnection httpConnection) argument
[all...]
/libcore/luni/src/test/java/libcore/net/http/
H A DHttpResponseCacheTest.java210 HttpURLConnection httpConnection = (HttpURLConnection) conn;
212 httpConnection.getRequestProperties();
217 httpConnection.addRequestProperty("K", "V");
221 assertEquals("HTTP/1.1 200 Fantastic", httpConnection.getHeaderField(null));
223 httpConnection.getHeaderFields().get(null));
224 assertEquals(200, httpConnection.getResponseCode());
225 assertEquals("Fantastic", httpConnection.getResponseMessage());
226 assertEquals(body.length(), httpConnection.getContentLength());
227 assertEquals("ijk", httpConnection.getHeaderField("fgh"));
229 httpConnection
[all...]

Completed in 684 milliseconds