OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:cacheResponse
(Results
1 - 11
of
11
) sorted by null
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
CacheStrategy.java
37
public final Response
cacheResponse
;
39
private CacheStrategy(Request networkRequest, Response
cacheResponse
) {
41
this.
cacheResponse
=
cacheResponse
;
91
final Response
cacheResponse
;
125
public Factory(long nowMillis, Request request, Response
cacheResponse
) {
128
this.
cacheResponse
=
cacheResponse
;
130
if (
cacheResponse
!= null) {
131
Headers headers =
cacheResponse
.headers()
[
all
...]
HttpEngine.java
157
private Response
cacheResponse
;
233
cacheResponse
= cacheStrategy.
cacheResponse
;
239
if (cacheCandidate != null &&
cacheResponse
== null) {
286
if (
cacheResponse
!= null) {
288
this.userResponse =
cacheResponse
.newBuilder()
291
.
cacheResponse
(stripBody(
cacheResponse
))
735
if (networkRequest == null &&
cacheResponse
== null) {
788
if (
cacheResponse
!= null)
[
all
...]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
Response.java
45
private Response
cacheResponse
;
59
this.
cacheResponse
= builder.
cacheResponse
;
167
public Response
cacheResponse
() {
168
return
cacheResponse
;
230
private Response
cacheResponse
;
246
this.
cacheResponse
= response.
cacheResponse
;
315
public Builder
cacheResponse
(Response
cacheResponse
) {
[
all
...]
Cache.java
401
} else if (cacheStrategy.
cacheResponse
!= null) {
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
RecordedResponse.java
128
assertNull(response.
cacheResponse
());
136
public RecordedResponse
cacheResponse
() {
137
Response
cacheResponse
= response.
cacheResponse
();
138
assertNotNull(
cacheResponse
);
139
assertNull(
cacheResponse
.body());
140
return new RecordedResponse(
cacheResponse
.request(),
cacheResponse
, null, null, null);
CallTest.java
[
all
...]
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/
CacheResponse.java
25
public final class
CacheResponse
{
28
public
CacheResponse
(File cacheDirectory) throws Exception {
46
System.out.println("Response 1 cache response: " + response1.
cacheResponse
());
54
System.out.println("Response 2 cache response: " + response2.
cacheResponse
());
61
new
CacheResponse
(new File("
CacheResponse
.tmp")).run();
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/
JavaApiConverterTest.java
33
import java.net.
CacheResponse
;
106
CacheResponse
cacheResponse
= new
CacheResponse
() {
119
Response response = JavaApiConverter.createOkResponseForCacheGet(request,
cacheResponse
);
138
CacheResponse
cacheResponse
= new
CacheResponse
() {
152
JavaApiConverter.createOkResponseForCacheGet(request,
cacheResponse
);
166
SecureCacheResponse
cacheResponse
= new SecureCacheResponse()
[
all
...]
/external/okhttp/okhttp-android-support/src/main/java/com/squareup/okhttp/internal/huc/
JavaApiConverter.java
34
import java.net.
CacheResponse
;
196
* Creates an OkHttp {@link Response} using the supplied {@link Request} and {@link
CacheResponse
}
199
static Response createOkResponseForCacheGet(Request request,
CacheResponse
javaResponse)
286
* Creates a {@link java.net.
CacheResponse
} of the correct (sub)type using information
289
public static
CacheResponse
createJavaCacheResponse(final Response response) {
341
return new
CacheResponse
() {
396
* Extracts OkHttp headers from the supplied {@link java.net.
CacheResponse
}. Only real headers are
397
* extracted. See {@link #extractStatusLine(java.net.
CacheResponse
)}.
399
private static Headers extractOkHeaders(
CacheResponse
javaResponse) throws IOException {
447
* Extracts the status line from the supplied Java API {@link java.net.
CacheResponse
}
[
all
...]
/external/okhttp/okhttp-urlconnection/src/main/java/com/squareup/okhttp/internal/huc/
HttpURLConnectionImpl.java
174
if (response.
cacheResponse
() == null) {
179
if (response.
cacheResponse
() == null) {
/prebuilts/tools/common/m2/repository/com/squareup/okhttp/okhttp/2.5.0/
okhttp-2.5.0.jar
Completed in 208 milliseconds