Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for commits (0.22 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  2. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/SimpleIdnaMappingTable.kt

        else -> skip(newline + 1)
      }
    }
    
    /**
     * Reads lines from `IdnaMappingTable.txt`.
     *
     * Comment lines are either blank or start with a `#` character. Lines may also end with a comment.
     * All comments are ignored.
     *
     * Regular lines contain fields separated by semicolons.
     *
     * The first element on each line is a single hex code point (like 0041) or a hex code point range
     * (like 0030..0039).
     *
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

                detach()
              }
            }
          }
        }
    
        /**
         * Commits this edit so it is visible to readers. This releases the edit lock so another edit
         * may be started on the same key.
         */
        @Throws(IOException::class)
        fun commit() {
          synchronized(this@DiskLruCache) {
            check(!done)
            if (entry.currentEditor == this) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
  4. docs/changelogs/changelog_2x.md

     *  Fix: Honor `OkUrlFactory` APIs that disable redirects.
     *  Fix: Don't crash on concurrent modification of `SPDY` SPDY settings.
    
    ## Version 2.0.0
    
    This release commits to a stable 2.0 API. Read the 2.0.0-RC1 changes for advice
    on upgrading from 1.x to 2.x.
    
    _2014-06-21_
    
     *  **API Change**: Use `IOException` in `Callback.onFailure()`. This is
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 26.6K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/ConnectionSpec.kt

        }
    
        if (specToApply.cipherSuites != null) {
          sslSocket.enabledCipherSuites = specToApply.cipherSuitesAsString
        }
      }
    
      /**
       * Returns a copy of this that omits cipher suites and TLS versions not enabled by [sslSocket].
       */
      private fun supportedSpec(
        sslSocket: SSLSocket,
        isFallback: Boolean,
      ): ConnectionSpec {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  6. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Viewed (0)
  7. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Dec 26 22:07:16 GMT 2022
    - 1.5K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/Headers.kt

     * the same line will be treated as a field with a single value by this class. It is the caller's
     * responsibility to detect and split on commas if their field permits multiple values. This
     * simplifies use of single-valued fields whose values routinely contain commas, such as cookies or
     * dates.
     *
     * This class trims whitespace from values. It never returns values with leading or trailing
     * whitespace.
     *
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  9. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/http/HttpHeaders.kt

          if (!skipCommasAndWhitespace() && !exhausted()) return // Expected ',' or EOF.
        }
        result.add(Challenge(schemeName, parameters))
      }
    }
    
    /** Returns true if any commas were skipped. */
    private fun Buffer.skipCommasAndWhitespace(): Boolean {
      var commaFound = false
      loop@ while (!exhausted()) {
        when (this[0]) {
          ','.code.toByte() -> {
            // Consume ','.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.2K bytes
    - Viewed (0)
Back to top