@Deprecated public interface OkResponseCache
ResponseCache
, this
interface supports conditional caching and statistics.
Modifier and Type | Method and Description |
---|---|
com.squareup.okhttp.internal.http.Response |
get(com.squareup.okhttp.internal.http.Request request)
Deprecated.
|
boolean |
maybeRemove(com.squareup.okhttp.internal.http.Request request)
Deprecated.
Remove any cache entries for the supplied
uri . |
CacheRequest |
put(com.squareup.okhttp.internal.http.Response response)
Deprecated.
|
void |
trackConditionalCacheHit()
Deprecated.
Track an conditional GET that was satisfied by this cache.
|
void |
trackResponse(ResponseSource source)
Deprecated.
Track an HTTP response being satisfied by
source . |
void |
update(com.squareup.okhttp.internal.http.Response cached,
com.squareup.okhttp.internal.http.Response network)
Deprecated.
Handles a conditional request hit by updating the stored cache response
with the headers from
network . |
com.squareup.okhttp.internal.http.Response get(com.squareup.okhttp.internal.http.Request request) throws IOException
IOException
CacheRequest put(com.squareup.okhttp.internal.http.Response response) throws IOException
IOException
boolean maybeRemove(com.squareup.okhttp.internal.http.Request request) throws IOException
uri
. Returns true if the
supplied requestMethod
potentially invalidates an entry in the
cache.IOException
void update(com.squareup.okhttp.internal.http.Response cached, com.squareup.okhttp.internal.http.Response network) throws IOException
network
. The cached response body is not
updated. If the stored response has changed since cached
was
returned, this does nothing.IOException
void trackConditionalCacheHit()
void trackResponse(ResponseSource source)
source
.Copyright © 2014. All Rights Reserved.