- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for minFresh (0.1 sec)
-
okhttp/src/main/kotlin/okhttp3/CacheControl.kt
this.maxStaleSeconds = maxStaleSeconds.commonClampToInt() } fun minFresh(minFresh: Duration) = apply { val minFreshSeconds = minFresh.inWholeSeconds require(minFreshSeconds >= 0) { "minFresh < 0: $minFreshSeconds" } this.minFreshSeconds = minFreshSeconds.commonClampToInt() } /**
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 15 13:41:01 UTC 2024 - 10K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CacheControlTest.kt
@Throws(Exception::class) fun completeBuilder() { val cacheControl = CacheControl.Builder() .noCache() .noStore() .maxAge(1.seconds) .maxStale(2.seconds) .minFresh(3.seconds) .onlyIfCached() .noTransform() .immutable() .build() assertThat(cacheControl.toString()).isEqualTo(
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 15 13:41:01 UTC 2024 - 2.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CacheControlJvmTest.kt
fun completeBuilder() { val cacheControl = CacheControl.Builder() .noCache() .noStore() .maxAge(1, TimeUnit.SECONDS) .maxStale(2, TimeUnit.SECONDS) .minFresh(3, TimeUnit.SECONDS) .onlyIfCached() .noTransform() .immutable() .build() assertThat(cacheControl.toString()).isEqualTo(
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 7.3K bytes - Viewed (0) -
okhttp/api/okhttp.api
public final fun maxStale (ILjava/util/concurrent/TimeUnit;)Lokhttp3/CacheControl$Builder; public final fun maxStale-LRDsOJo (J)Lokhttp3/CacheControl$Builder; public final fun minFresh (ILjava/util/concurrent/TimeUnit;)Lokhttp3/CacheControl$Builder; public final fun minFresh-LRDsOJo (J)Lokhttp3/CacheControl$Builder; public final fun noCache ()Lokhttp3/CacheControl$Builder; public final fun noStore ()Lokhttp3/CacheControl$Builder;
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 15 13:41:01 UTC 2024 - 70.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt
builder = builder.noCache() builder = builder.noStore() builder = builder.maxAge(0, TimeUnit.MILLISECONDS) builder = builder.maxStale(0, TimeUnit.MILLISECONDS) builder = builder.minFresh(0, TimeUnit.MILLISECONDS) builder = builder.onlyIfCached() builder = builder.noTransform() builder = builder.immutable() val cacheControl: CacheControl = builder.build() } @Test
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 01 14:21:25 UTC 2024 - 46.5K bytes - Viewed (0)