- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for refresh (0.15 sec)
-
docs/features/caching.md
```kotlin cache.evictAll() ``` Removing individual items can be done using the urls iterator. This would be typical after a user initiates a force refresh by a pull to refresh type action. ```java val urlIterator = cache.urls() while (urlIterator.hasNext()) { if (urlIterator.next().startsWith("https://www.google.com/")) { urlIterator.remove() }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Feb 06 02:19:09 GMT 2022 - 3.1K bytes - Viewed (0) -
native-image-tests/src/main/kotlin/okhttp3/GenerateClassList.kt
"okhttp3.osgi.OsgiTest", // Hanging. "okhttp3.CookiesTest", // Hanging. "okhttp3.WholeOperationTimeoutTest", ) /** * Run periodically to refresh the known set of working tests. * * TODO use filtering to allow skipping acceptable problem tests */ fun main() { val knownTestFile = File("native-image-tests/src/main/resources/testlist.txt")
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 1.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/osgi/OsgiTest.kt
LocalIndexedRepo::class.java.getName() + "; ${LocalIndexedRepo.PROP_NAME} = '$REPO_NAME'" + "; ${LocalIndexedRepo.PROP_LOCAL_DIR} = '$repoDir'", ) refresh() prepareWorkspace() } } private fun Workspace.prepareWorkspace() { val repositoryPlugin = getRepository(REPO_NAME) // Deploy the bundles in the deployments test directory.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 4.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CacheControlJvmTest.kt
.onlyIfCached() .noTransform() .immutable() .build() assertThat(cacheControl.toString()).isEqualTo( "no-cache, no-store, max-age=1, max-stale=2, min-fresh=3, only-if-cached, " + "no-transform, immutable", ) assertThat(cacheControl.noCache).isTrue() assertThat(cacheControl.noStore).isTrue() assertThat(cacheControl.maxAgeSeconds).isEqualTo(1)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 7.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-CacheControlCommon.kt
if (mustRevalidate) append("must-revalidate, ") if (maxStaleSeconds != -1) append("max-stale=").append(maxStaleSeconds).append(", ") if (minFreshSeconds != -1) append("min-fresh=").append(minFreshSeconds).append(", ") if (onlyIfCached) append("only-if-cached, ") if (noTransform) append("no-transform, ") if (immutable) append("immutable, ") if (isEmpty()) return ""
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 13:41:01 GMT 2024 - 7.2K bytes - Viewed (0) -
mockwebserver-junit5/src/main/kotlin/mockwebserver3/junit5/internal/MockWebServerExtension.kt
/** * Runs MockWebServer for the duration of a single test method. * * Specifically while junit instances passes into test constructor * are typically shares amongst all tests, a fresh instance will be * received here. Use with @BeforeAll and @AfterAll, is not supported. * * There are 3 ids for instances * - The test instance default (passed into constructor)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Feb 11 12:12:36 GMT 2024 - 4.1K bytes - Viewed (0) -
docs/features/calls.md
Some requests will have a cached response. When this cached response isn’t fresh, OkHttp can do a _conditional GET_ to download an updated response if it’s newer than what’s cached. This requires headers like `If-Modified-Since` and `If-None-Match` to be added. ## Rewriting Responses
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Feb 06 02:19:09 GMT 2022 - 3.9K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/PrintEventsNonConcurrent.java
import okhttp3.Protocol; import okhttp3.Request; import okhttp3.Response; /** * This prints events for a single in-flight call. It won't work for multiple concurrent calls * because we don't know what callStartNanos refers to. */ public final class PrintEventsNonConcurrent { private final OkHttpClient client = new OkHttpClient.Builder() .eventListener(new PrintingEventListener()) .build();
Java - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Feb 16 23:20:49 GMT 2020 - 5.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CacheControlTest.kt
.minFresh(3.seconds) .onlyIfCached() .noTransform() .immutable() .build() assertThat(cacheControl.toString()).isEqualTo( "no-cache, no-store, max-age=1, max-stale=2, min-fresh=3, only-if-cached, no-transform, immutable", ) assertThat(cacheControl.noCache).isTrue() assertThat(cacheControl.noStore).isTrue() assertThat(cacheControl.maxAgeSeconds).isEqualTo(1)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 13:41:01 GMT 2024 - 2.7K bytes - Viewed (0)