- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for snapshots (0.18 sec)
-
okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt
assertThat(filesystem.exists(journalBkpFile)).isTrue() createNewCache() val snapshotA = cache["k1"]!! snapshotA.assertValue(0, "ABC") snapshotA.assertValue(1, "DE") val snapshotB = cache["k2"]!! snapshotB.assertValue(0, "F") snapshotB.assertValue(1, "GH") assertThat(filesystem.exists(journalBkpFile)).isFalse()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 14:55:09 GMT 2024 - 75.8K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Cache.kt
val key = key(request.url) val snapshot: DiskLruCache.Snapshot = try { cache[key] ?: return null } catch (_: IOException) { return null // Give up because the cache cannot be read. } val entry: Entry = try { Entry(snapshot.getSource(ENTRY_METADATA)) } catch (_: IOException) { snapshot.closeQuietly() return null }
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) -
docs/changelogs/changelog_4x.md
these in logs, metrics, and even test cases to confirm your cache headers are configured as expected. * New: Constant string `okhttp3.VERSION`. This is a string like "4.5.0-RC1", "4.5.0", or "4.6.0-SNAPSHOT" indicating the version of OkHttp in the current runtime. Use this to include the OkHttp version in custom `User-Agent` headers. * Fix: Don't crash when running as a plugin in Android Studio Canary 4.1. To enable
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 17 13:25:31 GMT 2024 - 25.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CallTest.kt
val response = call.execute() assertThat(response.header("Content-Encoding")).isEqualTo("gzip") assertThat(response.body.source().readByteString()).isEqualTo( gzippedBody.snapshot(), ) // The request did not offer gzip support. val recordedRequest = server.takeRequest() assertThat(recordedRequest.headers["Accept-Encoding"]).isNull() } @Test
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 142.5K bytes - Viewed (0) -
build.gradle.kts
apply(plugin = "com.diffplug.spotless") configure<SpotlessExtension> { kotlin { target("**/*.kt") ktlint() } } allprojects { group = "com.squareup.okhttp3" version = "5.0.0-SNAPSHOT" repositories { mavenCentral() google() } tasks.create("downloadDependencies") { description = "Download all dependencies to the Gradle cache" doLast {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Apr 18 01:32:42 GMT 2024 - 8.9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskRunner.kt
backend.execute(this@TaskRunner, runnable) } fun newQueue(): TaskQueue { val name = lock.withLock { nextQueueName++ } return TaskQueue(this, "Q$name") } /** * Returns a snapshot of queues that currently have tasks scheduled. The task runner does not * necessarily track queues that have no tasks scheduled. */ fun activeQueues(): List<TaskQueue> { lock.withLock {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 29 00:33:04 GMT 2024 - 10.6K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Dispatcher.kt
if (!isRunning && idleCallback != null) { idleCallback.run() } } /** Returns a snapshot of the calls currently awaiting execution. */ fun queuedCalls(): List<Call> = this.withLock { return Collections.unmodifiableList(readyAsyncCalls.map { it.call }) } /** Returns a snapshot of the calls currently being executed. */ fun runningCalls(): List<Call> = this.withLock {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 20 17:03:43 GMT 2024 - 9K bytes - Viewed (0) -
.github/workflows/build.yml
id: avd-cache with: path: | ~/.android/avd/* ~/.android/adb* key: avd-${{ matrix.api-level }} - name: Create AVD and generate snapshot for caching if: steps.avd-cache.outputs.cache-hit != 'true' uses: reactivecircus/android-emulator-runner@v2 with: api-level: ${{ matrix.api-level }}
Others - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 01:51:50 GMT 2024 - 17.2K bytes - Viewed (0)