Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 13 of 13 for cacheResponse (0.09 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/LoggingEventListener.kt

      }
    
      override fun cacheMiss(call: Call) {
        logWithTime("cacheMiss")
      }
    
      override fun cacheConditionalHit(
        call: Call,
        cachedResponse: Response,
      ) {
        logWithTime("cacheConditionalHit: $cachedResponse")
      }
    
      private fun logWithTime(message: String) {
        val timeMs = TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - startNs)
        logger.log("[$timeMs ms] $message")
      }
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon Oct 06 13:40:20 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/EventListener.kt

            delegate.cacheMiss(call)
          }
        }
    
        override fun cacheConditionalHit(
          call: Call,
          cachedResponse: Response,
        ) {
          for (delegate in eventListeners) {
            delegate.cacheConditionalHit(call, cachedResponse)
          }
        }
    
        override fun retryDecision(
          call: Call,
          exception: IOException,
          retry: Boolean,
        ) {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Oct 07 21:03:04 GMT 2025
    - 24.9K bytes
    - Click Count (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/EventListenerAdapter.kt

      override fun cacheHit(
        call: Call,
        response: Response,
      ) = onEvent(CacheHit(System.nanoTime(), call))
    
      override fun cacheConditionalHit(
        call: Call,
        cachedResponse: Response,
      ) = onEvent(CacheConditionalHit(System.nanoTime(), call))
    
      override fun retryDecision(
        call: Call,
        exception: IOException,
        retry: Boolean,
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 7.1K bytes
    - Click Count (0)
Back to Top