Class of android.net.http · HttpResponseCache.java · Android's reference
public final class HttpResponseCache extends ResponseCache implements Closeable
The HTTP cache of URLConnection. It is installed as the default ResponseCache and counts requests, but it keeps no responses: each request goes to the network.
public static HttpResponseCache getInstalled() sourcepublic static synchronized HttpResponseCache install(File directory, long maxSize) throws IOException sourcepublic synchronized CacheResponse get(URI uri, String requestMethod, Map<String, List<String>> requestHeaders) sourcepublic CacheRequest put(URI uri, URLConnection urlConnection) sourcepublic long size() sourcepublic long maxSize() sourcepublic void flush() empty body sourcepublic synchronized int getNetworkCount() sourcepublic int getHitCount() sourcepublic synchronized int getRequestCount() sourcepublic void close() throws IOException sourcepublic void delete() throws IOException sourceMade from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.