- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 24 for cacheGet (0.12 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/cache/CacheInterceptor.kt
// If we don't need the network, we're done. if (networkRequest == null) { return cacheResponse!!.newBuilder() .cacheResponse(cacheResponse.stripBody()) .build().also { listener.cacheHit(call, it) } } if (cacheResponse != null) { listener.cacheConditionalHit(call, cacheResponse) } else if (cache != null) { listener.cacheMiss(call) }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Fri Mar 22 07:09:21 UTC 2024 - 10.2K bytes - Viewed (0) -
docs/features/caching.md
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Feb 06 02:19:09 UTC 2022 - 3.1K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/RecordingEventListener.kt
) = logEvent(SatisfactionFailure(System.nanoTime(), call)) override fun cacheMiss(call: Call) = logEvent(CacheMiss(System.nanoTime(), call)) override fun cacheHit( call: Call, response: Response, ) = logEvent(CacheHit(System.nanoTime(), call)) override fun cacheConditionalHit( call: Call, cachedResponse: Response, ) = logEvent(CacheConditionalHit(System.nanoTime(), call))
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Cache.kt
private inner class RealCacheRequest( private val editor: DiskLruCache.Editor, ) : CacheRequest { private val cacheOut: Sink = editor.newSink(ENTRY_BODY) private val body: Sink var done = false init { this.body = object : ForwardingSink(cacheOut) { @Throws(IOException::class) override fun close() { synchronized(this@Cache) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 26.8K bytes - Viewed (0) -
native-image-tests/src/main/resources/testlist.txt
okhttp3.AddressTest okhttp3.CacheControlTest okhttp3.CacheCorruptionTest okhttp3.CacheTest okhttp3.CallHandshakeTest okhttp3.CallKotlinTest okhttp3.CallTest okhttp3.CertificateChainCleanerTest okhttp3.CertificatePinnerKotlinTest okhttp3.CertificatePinnerTest okhttp3.CipherSuiteTest okhttp3.ConnectionCoalescingTest okhttp3.ConnectionReuseTest okhttp3.ConnectionSpecTest okhttp3.CookieTest okhttp3.DispatcherTest okhttp3.DuplexTest
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu May 11 14:48:57 UTC 2023 - 2.8K bytes - Viewed (0) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt
listener.cacheConditionalHit(call, response) listener.cacheHit(call, response) listener.cacheMiss(call) listener.satisfactionFailure(call, response) logRecorder .assertLogMatch(Regex("""cacheConditionalHit: Response\{protocol=h2, code=200, message=, url=$url\}""")) .assertLogMatch(Regex("""cacheHit: Response\{protocol=h2, code=200, message=, url=$url\}"""))
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Jan 14 10:20:09 UTC 2024 - 10.2K bytes - Viewed (0) -
okhttp-logging-interceptor/api/logging-interceptor.api
public synthetic fun <init> (Lokhttp3/logging/HttpLoggingInterceptor$Logger;Lkotlin/jvm/internal/DefaultConstructorMarker;)V public fun cacheConditionalHit (Lokhttp3/Call;Lokhttp3/Response;)V public fun cacheHit (Lokhttp3/Call;Lokhttp3/Response;)V public fun cacheMiss (Lokhttp3/Call;)V public fun callEnd (Lokhttp3/Call;)V public fun callFailed (Lokhttp3/Call;Ljava/io/IOException;)V public fun callStart (Lokhttp3/Call;)V
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 06 09:14:38 UTC 2024 - 4.5K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/CallEvent.kt
val ioe: IOException, ) : CallEvent() data class SatisfactionFailure( override val timestampNs: Long, override val call: Call, ) : CallEvent() data class CacheHit( override val timestampNs: Long, override val call: Call, ) : CallEvent() data class CacheMiss( override val timestampNs: Long, override val call: Call, ) : CallEvent()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 6.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/EventListener.kt
* Response and normal event sequences will not be received. * * This event will only be received when a Cache is configured for the client. */ open fun cacheHit( call: Call, response: Response, ) { } /** * Invoked when a response will be served from the network. The Response will be * available from normal event sequences. *
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 15.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CallTest.kt
Thread.sleep(10) // Make sure the timestamps are unique. val cacheHit = executeSynchronously( "/", "Accept-Language", "en-US", "Accept-Charset", "UTF-8", ) // Check the merged response. The request is the application's original request. cacheHit.assertCode(200) .assertBody("A") .assertHeaders(
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 142.5K bytes - Viewed (0)