Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for Commit (0.17 sec)

  1. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

        val k1Creator = cache.edit("k1")!!
        k1Creator.setString(0, "AB")
        k1Creator.setString(1, "C")
        k1Creator.commit()
        val k2Creator = cache.edit("k2")!!
        k2Creator.setString(0, "DEF")
        k2Creator.setString(1, "G")
        k2Creator.commit()
        val k1Snapshot = cache["k1"]!!
        k1Snapshot.close()
        cache.close()
    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)
  2. okhttp/src/main/kotlin/okhttp3/Cache.kt

        var editor: DiskLruCache.Editor? = null
        try {
          editor = snapshot.edit() ?: return // edit() returns null if snapshot is not current.
          entry.writeTo(editor)
          editor.commit()
        } catch (_: IOException) {
          abortQuietly(editor)
        }
      }
    
      private fun abortQuietly(editor: DiskLruCache.Editor?) {
        // Give up because the cache cannot be written.
        try {
    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)
  3. docs/changelogs/changelog_4x.md

     *  New: Publish a [bill of materials (BOM)][bom] for OkHttp. Depend on this from Gradle or Maven to
        keep all of your OkHttp artifacts on the same version, even if they're declared via transitive
        dependencies. You can even omit versions when declaring other OkHttp dependencies.
    
        ```kotlin
        dependencies {
           api(platform("com.squareup.okhttp3:okhttp-bom:4.4.0"))
           api("com.squareup.okhttp3:okhttp")              // No version!
    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)
  4. CHANGELOG.md

     *  New: `Request.Builder.cacheUrlOverride()` customizes the cache key used for a request. This can
        be used to make canonical URLs for the cache that omit insignificant query parameters or other
        irrelevant data.
    
        This feature may be used with `POST` requests to cache their responses. In such cases the
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:31:39 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/CacheTest.kt

            .status("HTTP/1.1 200 Fantastic")
        transferKind.setBody(mockResponse, "I love puppies but hate spiders", 1)
        server.enqueue(mockResponse.build())
    
        // Make sure that calling skip() doesn't omit bytes from the cache.
        val request = Request.Builder().url(server.url("/")).build()
        val response1 = client.newCall(request).execute()
        val in1 = response1.body.source()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
Back to top