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

/libcore/luni/src/main/java/java/net/
H A DCacheRequest.java56 public abstract OutputStream getBody() throws IOException; method in class:CacheRequest
H A DCacheResponse.java39 public abstract InputStream getBody() throws IOException; method in class:CacheResponse
/libcore/support/src/test/java/tests/http/
H A DRecordedRequest.java69 public byte[] getBody() { method in class:RecordedRequest
H A DMockResponse.java91 public byte[] getBody() { method in class:MockResponse
H A DMockWebServer.java426 out.write(response.getBody());
/libcore/luni/src/main/java/libcore/net/http/
H A DAbstractHttpInputStream.java47 OutputStream cacheBody = cacheRequest != null ? cacheRequest.getBody() : null;
H A DHttpEngine.java78 @Override public InputStream getBody() throws IOException {
236 setResponse(new ResponseHeaders(uri, rawResponseHeaders), cacheResponse.getBody());
264 cachedResponseBody = candidate.getBody();
H A DHttpResponseCache.java309 @Override public OutputStream getBody() throws IOException { method in class:HttpResponseCache.CacheRequestImpl
534 @Override public InputStream getBody() { method in class:HttpResponseCache.EntryCacheResponse
554 @Override public InputStream getBody() { method in class:HttpResponseCache.EntrySecureCacheResponse
/libcore/luni/src/test/java/libcore/java/net/
H A DURLConnectionTest.java595 bytesOut.write(mockResponse.getBody());
1127 assertEquals("ABCDEFGHIJKLMNOPQ", new String(request.getBody(), "US-ASCII"));
1168 assertEquals(Arrays.toString(requestBody), Arrays.toString(request.getBody()));
1308 assertEquals(Arrays.toString(requestBody), Arrays.toString(request.getBody()));
1347 assertEquals(Arrays.toString(requestBody), Arrays.toString(request.getBody()));
1582 assertEquals(Arrays.toString(requestBody), Arrays.toString(page1.getBody()));
1705 assertEquals("ABC", new String(request.getBody(), "UTF-8"));
1982 @Override public OutputStream getBody() throws IOException {
/libcore/luni/src/test/java/libcore/net/http/
H A DHttpResponseCacheTest.java183 cached.getBody().close();
1769 response.setBody(Arrays.copyOfRange(response.getBody(), 0, numBytesToKeep));
1875 @Override public InputStream getBody() throws IOException {
1876 return response.getBody();

Completed in 120 milliseconds