Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for commonForceCache (0.12 sec)

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

     */
    package okhttp3
    
    import java.util.concurrent.TimeUnit
    import kotlin.time.Duration
    import okhttp3.internal.commonBuild
    import okhttp3.internal.commonClampToInt
    import okhttp3.internal.commonForceCache
    import okhttp3.internal.commonForceNetwork
    import okhttp3.internal.commonImmutable
    import okhttp3.internal.commonNoCache
    import okhttp3.internal.commonNoStore
    import okhttp3.internal.commonNoTransform
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 13:41:01 UTC 2024
    - 10K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/-CacheControlCommon.kt

        else -> toInt()
      }
    }
    
    internal fun CacheControl.Companion.commonForceNetwork() =
      CacheControl.Builder()
        .noCache()
        .build()
    
    internal fun CacheControl.Companion.commonForceCache() =
      CacheControl.Builder()
        .onlyIfCached()
        .maxStale(Int.MAX_VALUE.seconds)
        .build()
    
    internal fun CacheControl.Builder.commonBuild(): CacheControl {
      return CacheControl(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 13:41:01 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top