Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for Commit (0.18 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt

        val fileOperator = FileOperator(file!!.channel)
        fileOperator.write(FILE_HEADER_SIZE + upstreamSize, metadataBuffer, metadata.size.toLong())
      }
    
      @Throws(IOException::class)
      fun commit(upstreamSize: Long) {
        // Write metadata to the end of the file.
        writeMetadata(upstreamSize)
        file!!.channel.force(false)
    
        // Once everything else is in place we can swap the dirty header for a clean one.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

     *    default to their previous value.
     *
     * Every [edit] call must be matched by a call to [Editor.commit] or [Editor.abort]. Committing is
     * atomic: a read observes the full set of values as they were before or after the commit, but never
     * a mix of values.
     *
     * Clients call [get] to read a snapshot of an entry. The read will observe the value at the time
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K 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. 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)
  5. docs/releasing.md

          "s/\/com.squareup.okhttp3\/\([^\:]*\)\/[^\/]*\//\/com.squareup.okhttp3\/\1\/$RELEASE_VERSION\//g" \
          `find . -name "README.md"`
        ```
    
    4. Tag the release and push to GitHub.
    
        ```
        git commit -am "Prepare for release $RELEASE_VERSION."
        git tag -a parent-$RELEASE_VERSION -m "Version $RELEASE_VERSION"
        git push && git push --tags
        ```
    
    5. Wait for [GitHub Actions][github_actions] to start the publish job.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Dec 26 22:07:16 GMT 2022
    - 1.5K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. okhttp/src/test/java/okhttp3/internal/tls/HostnameVerifierTest.kt

        assertThat(verifier.verify("foo.com", session)).isTrue()
        assertThat(verifier.verify("bar.com", session)).isFalse()
      }
    
      @Test fun specialKInHostname() {
        // https://github.com/apache/httpcomponents-client/commit/303e435d7949652ea77a6c50df1c548682476b6e
        // https://www.gosecure.net/blog/2020/10/27/weakness-in-java-tls-host-verification/
        val heldCertificate =
          HeldCertificate.Builder()
            .commonName("Foo Corp")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 40.3K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt

     * true for systems like Mac, Unix, and Linux that use inodes in their file system interface. It is
     * typically false on Windows.
     *
     * If this returns false we won't permit simultaneous reads and writes. When writes commit we need
     * to delete the previous snapshots, and that won't succeed if the file is open. (We do permit
     * multiple simultaneous reads.)
     *
     * @param file a file in the directory to check. This file shouldn't already exist!
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11K bytes
    - Viewed (0)
  10. docs/changelogs/changelog_3x.md

    _2016-01-14_
    
     *  Rollback OSGi support. This was causing library jars to include more classes
        than expected, which interfered with Gradle builds.
    
    
    ## Version 3.0.0
    
    _2016-01-13_
    
    This release commits to a stable 3.0 API. Read the 3.0.0-RC1 changes for advice
    on upgrading from 2.x to 3.x.
    
     *  **The `Callback` interface now takes a `Call`**. This makes it easier to
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Viewed (0)
Back to top