Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for CacheInterceptor (0.39 seconds)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/CacheInterceptor.kt

    import okhttp3.internal.stripBody
    import okio.Buffer
    import okio.Source
    import okio.Timeout
    import okio.buffer
    
    /** Serves requests from the cache and writes responses to the cache. */
    class CacheInterceptor : Interceptor {
      @Throws(IOException::class)
      override fun intercept(chain: Interceptor.Chain): Response {
        val call = chain.call()
        val cache = chain.cache
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Jan 11 12:06:21 GMT 2026
    - 10.3K bytes
    - Click Count (0)
  2. okhttp/src/androidMain/baseline-prof.txt

    HSPLokhttp3/internal/cache/CacheInterceptor$Companion;-><init>(Landroidx/lifecycle/viewmodel/R$id;)V
    HSPLokhttp3/internal/cache/CacheInterceptor$Companion;->access$stripBody(Lokhttp3/internal/cache/CacheInterceptor$Companion;Lokhttp3/Response;)Lokhttp3/Response;
    HSPLokhttp3/internal/cache/CacheInterceptor;-><clinit>()V
    HSPLokhttp3/internal/cache/CacheInterceptor;-><init>(Lokhttp3/Cache;)V
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Dec 30 23:28:56 GMT 2024
    - 127.9K bytes
    - Click Count (1)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealCall.kt

    import okhttp3.EventListener
    import okhttp3.Interceptor
    import okhttp3.OkHttpClient
    import okhttp3.Request
    import okhttp3.Response
    import okhttp3.internal.assertLockNotHeld
    import okhttp3.internal.cache.CacheInterceptor
    import okhttp3.internal.closeQuietly
    import okhttp3.internal.computeIfAbsent
    import okhttp3.internal.concurrent.Lockable
    import okhttp3.internal.concurrent.assertLockHeld
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Jan 11 12:06:21 GMT 2026
    - 19.5K bytes
    - Click Count (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt

          .sink(cacheEntry)
          .buffer()
          .writeUtf8(content)
          .close()
      }
    
      /**
       * A network interceptor strips the handshake from a real HTTPS response before the
       * CacheInterceptor writes it to disk. This creates the bug condition: url.isHttps=true
       * but handshake=null. Before the fix, `handshake!!` in writeTo() threw NPE.
       *
       * https://github.com/square/okhttp/issues/8962
       */
      @Test
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Mar 20 09:13:37 GMT 2026
    - 121K bytes
    - Click Count (0)
Back to Top