- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 25 for cacheResponse (0.1 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt
val builder: Response.Builder = response.newBuilder() val redirect: Boolean = response.isRedirect val networkResponse: Response? = response.networkResponse val cacheResponse: Response? = response.cacheResponse val priorResponse: Response? = response.priorResponse val challenges: List<Challenge> = response.challenges() val cacheControl: CacheControl = response.cacheControl
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Jun 21 20:36:35 UTC 2025 - 46.5K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/UnreadableResponseBody.kt
sink: Buffer, byteCount: Long, ): Long = throw IllegalStateException( """ |Unreadable ResponseBody! These Response objects have bodies that are stripped: | * Response.cacheResponse | * Response.networkResponse | * Response.priorResponse | * EventSourceListener | * WebSocketListener |(It is safe to call contentType() and contentLength() on these response bodies.)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue May 27 15:19:53 UTC 2025 - 1.7K bytes - Viewed (0) -
docs/changelogs/upgrading_to_okhttp_4.md
* **PushPromise**: headers, method, path, response * **Request**: body, cacheControl, headers, method, url * **Response**: body, cacheControl, cacheResponse, code, handshake, headers, message, networkResponse, priorResponse, protocol, receivedResponseAtMillis, request, sentRequestAtMillis * **Route**: address, proxy, socketAddress * **TlsVersion**: javaName
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun Feb 06 16:58:16 UTC 2022 - 10.9K bytes - Viewed (0) -
android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt
assertNull(it.cacheResponse) assertNotNull(it.networkResponse) assertEquals(3, it.cacheControl.maxAgeSeconds) assertTrue(it.cacheControl.isPublic) } client .newCall(request) .execute() .use { assertEquals(200, it.code) assertNotNull(it.cacheResponse) assertNull(it.networkResponse)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 02 14:12:28 UTC 2025 - 29K bytes - Viewed (0) -
okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt
} throw unknownHostException } @Throws(Exception::class) private fun readResponse( hostname: String, response: Response, ): List<InetAddress> { if (response.cacheResponse == null && response.protocol !== Protocol.HTTP_2 && response.protocol !== Protocol.QUIC) { Platform.get().log("Incorrect protocol: ${response.protocol}", Platform.WARN) } response.use {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat May 10 11:15:14 UTC 2025 - 8.6K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cache.kt
/** * Returns true if none of the Vary headers have changed between [cachedRequest] and * [newRequest]. */ fun varyMatches( cachedResponse: Response, cachedRequest: Headers, newRequest: Request, ): Boolean = cachedResponse.headers.varyFields().none { cachedRequest.values(it) != newRequest.headers(it) }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 16 09:39:51 UTC 2025 - 26.9K bytes - Viewed (0) -
okhttp/api/jvm/okhttp.api
public final fun -deprecated_sentRequestAtMillis ()J public final fun body ()Lokhttp3/ResponseBody; public final fun cacheControl ()Lokhttp3/CacheControl; public final fun cacheResponse ()Lokhttp3/Response; public final fun challenges ()Ljava/util/List; public fun close ()V public final fun code ()I public final fun handshake ()Lokhttp3/Handshake;
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 16 09:39:51 UTC 2025 - 69.4K bytes - Viewed (0) -
CHANGELOG.md
) ``` * New: `Response.body` is now non-null. This was generally the case in OkHttp 4.x, but the Kotlin type declaration was nullable to support rare cases like the body on `Response.cacheResponse`, `Response.networkResponse`, and `Response.priorResponse`. In such cases the body is now non-null, but attempts to read its content will fail.
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jul 07 19:32:33 UTC 2025 - 31.6K bytes - Viewed (1) -
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
.assertReceivedResponseAtMillis(request1SentAt, request1ReceivedAt) // Check the cached response. Its request contains only the saved Vary headers. cacheHit .cacheResponse() .assertCode(200) .assertHeaders( Headers .Builder() .add("ETag", "v1") .add("Cache-Control", "max-age=60") .add("Vary", "Accept-Charset")
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 146.6K bytes - Viewed (0) -
okhttp/api/android/okhttp.api
public final fun -deprecated_sentRequestAtMillis ()J public final fun body ()Lokhttp3/ResponseBody; public final fun cacheControl ()Lokhttp3/CacheControl; public final fun cacheResponse ()Lokhttp3/Response; public final fun challenges ()Ljava/util/List; public fun close ()V public final fun code ()I public final fun handshake ()Lokhttp3/Handshake;
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 16 09:39:51 UTC 2025 - 69.4K bytes - Viewed (0)