Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for detach (0.27 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

         * we delete the editor's created files and prevent new files from being created. Note that once
         * an editor has been detached it is possible for another editor to edit the entry.
         */
        internal fun detach() {
          if (entry.currentEditor == this) {
            if (civilizedFileSystem) {
              completeEdit(this, false) // Delete it now.
            } else {
    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)
  2. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

        // Create an editor for k1. Detach it by clearing the cache.
        val editor = cache.edit("k1")!!
        editor.setString(0, "a")
        editor.setString(1, "a")
        cache.evictAll()
    
        // Create a new value in its place.
        set("k1", "bb", "bb")
        assertThat(cache.size()).isEqualTo(4)
    
        // Committing the detached editor should not change the cache's size.
        editor.commit()
    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)
  3. docs/changelogs/changelog_4x.md

     [bom]: https://docs.gradle.org/6.2/userguide/platforms.html#sub:bom_import
     [bouncy_castle_releases]: https://www.bouncycastle.org/releasenotes.html
     [CVE-2021-0341]: https://nvd.nist.gov/vuln/detail/CVE-2021-0341
     [CVE-2022-24329]: https://nvd.nist.gov/vuln/detail/CVE-2022-24329
     [dev_server]: https://github.com/square/okhttp/blob/482f88300f78c3419b04379fc26c3683c10d6a9d/samples/guide/src/main/java/okhttp3/recipes/kt/DevServer.kt
    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/URLConnectionTest.kt

      /**
       * Test a bug where gzip input streams weren't exhausting the input stream, which corrupted the
       * request that followed or prevented connection reuse. http://code.google.com/p/android/issues/detail?id=7059
       * http://code.google.com/p/android/issues/detail?id=38817
       */
      private fun testClientConfiguredGzipContentEncodingAndConnectionReuse(
        transferKind: TransferKind,
        tls: Boolean,
      ) {
        if (tls) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

      internal fun <E : IOException?> messageDone(
        exchange: Exchange,
        requestDone: Boolean,
        responseDone: Boolean,
        e: E,
      ): E {
        if (exchange != this.exchange) return e // This exchange was detached violently!
    
        var bothStreamsDone = false
        var callDone = false
        this.withLock {
          if (requestDone && requestBodyOpen || responseDone && responseBodyOpen) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 17.9K bytes
    - Viewed (2)
  6. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/internal/IsProbablyUtf8.kt

     */
    package okhttp3.logging.internal
    
    import java.io.EOFException
    import okio.Buffer
    
    /**
     * Returns true if the body in question probably contains human readable text. Uses a small
     * sample of code points to detect unicode control characters commonly used in binary file
     * signatures.
     */
    fun Buffer.isProbablyUtf8(): Boolean {
      try {
        val prefix = Buffer()
        val byteCount = size.coerceAtMost(64)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 07 16:05:34 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  7. okhttp/src/test/resources/okhttp3/internal/publicsuffix/public_suffix_list.dat

    deno.dev
    deno-staging.dev
    
    // deSEC : https://desec.io/
    // Submitted by Peter Thomassen <******@****.***>
    dedyn.io
    
    // Deta: https://www.deta.sh/
    // Submitted by Aavash Shrestha <aavash@deta.sh>
    deta.app
    deta.dev
    
    // Diher Solutions : https://diher.solutions
    // Submitted by Didi Hermawan <******@****.***ons>
    *.rss.my.id
    *.diher.solutions
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 240.3K bytes
    - Viewed (3)
  8. LICENSE.txt

          defend, and hold each Contributor harmless for any liability
          incurred by, or claims asserted against, such Contributor by reason
          of your accepting any such warranty or additional liability.
    
       END OF TERMS AND CONDITIONS
    
       APPENDIX: How to apply the Apache License to your work.
    
          To apply the Apache License to your work, attach the following
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jul 23 14:02:28 GMT 2012
    - 11.1K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt

        response1.close()
    
        // Force a fresh connection for the next request.
        client.connectionPool.evictAll()
    
        // Confirm that a second request also succeeds. This should detect caching problems.
        server.enqueue(
          MockResponse.Builder()
            .body("def")
            .socketPolicy(DisconnectAtEnd)
            .build(),
        )
        val call2 =
          client.newCall(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 23.8K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/Headers.kt

     *
     * This class tracks header values line-by-line. A field with multiple comma- separated values on
     * 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.
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.5K bytes
    - Viewed (0)
Back to top