Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for if (0.14 sec)

  1. okhttp/src/main/kotlin/okhttp3/Cache.kt

      @Synchronized internal fun trackResponse(cacheStrategy: CacheStrategy) {
        requestCount++
    
        if (cacheStrategy.networkRequest != null) {
          // If this is a conditional request, we'll increment hitCount if/when it hits.
          networkCount++
        } else if (cacheStrategy.cacheResponse != null) {
          // This response uses the cache and not the network. That's a cache hit.
          hitCount++
        }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
Back to top