Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CacheResponse (0.21 sec)

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

      @JvmName("-deprecated_cacheResponse")
      @Deprecated(
        message = "moved to val",
        replaceWith = ReplaceWith(expression = "cacheResponse"),
        level = DeprecationLevel.ERROR,
      )
      fun cacheResponse(): Response? = cacheResponse
    
      @JvmName("-deprecated_priorResponse")
      @Deprecated(
        message = "moved to val",
        replaceWith = ReplaceWith(expression = "priorResponse"),
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jul 06 09:38:30 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  2. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt

                .cacheControl(onlyIfCached)
                .cacheUrlOverride(cacheUrl)
                .build()
    
            val cacheResponse = client.newCall(cacheRequest).execute()
    
            if (cacheResponse.code != HttpURLConnection.HTTP_GATEWAY_TIMEOUT) {
              return cacheResponse
            }
          } catch (ioe: IOException) {
            // Failures are ignored as we can fallback to the network
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Oct 31 09:27:31 UTC 2024
    - 9.8K bytes
    - Viewed (0)
Back to top