Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 22 for consistent (0.23 sec)

  1. okhttp/src/main/kotlin/okhttp3/MultipartBody.kt

        writeOrCountBytes(sink, false)
      }
    
      /**
       * Either writes this request to [sink] or measures its content length. We have one method do
       * double-duty to make sure the counting and content are consistent, particularly when it comes
       * to awkward operations like measuring the encoded length of header strings, or the
       * length-in-digits of an encoded integer.
       */
      @Throws(IOException::class)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  2. docs/changelogs/changelog_3x.md

         ```
    
     *  Fix: Gracefully recover from a failure to rebuild the cache journal.
     *  Fix: Don't corrupt cache entries when a cache entry is evicted while it is
        being updated.
     *  Fix: Make logging more consistent throughout OkHttp.
     *  Fix: Log plaintext bodies only. This uses simple heuristics to differentiate
        text from other data.
     *  Fix: Recover from `REFUSED_STREAM` errors in HTTP/2. This should improve
    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)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformRule.kt

    import org.junit.jupiter.api.extension.ReflectiveInvocationContext
    import org.openjsse.net.ssl.OpenJSSE
    import org.opentest4j.TestAbortedException
    
    /**
     * Marks a test as Platform aware, before the test runs a consistent Platform will be
     * established e.g. SecurityProvider for Conscrypt installed.
     *
     * Also allows a test file to state general platform assumptions, or for individual test.
     */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

          val connection = exchangeFinderFactory(this, state.address, PoolConnectionUser).find()
    
          // RealRoutePlanner will add the connection to the pool itself, other RoutePlanners may not
          // TODO: make all RoutePlanners consistent in this behavior
          if (connection !in connections) {
            connection.withLock { put(connection) }
          }
    
          return 0L // run again immediately to create more connections if needed
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 16.2K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/CipherSuite.kt

      companion object {
        /**
         * Compares cipher suites names like "TLS_RSA_WITH_NULL_MD5" and "SSL_RSA_WITH_NULL_MD5",
         * ignoring the "TLS_" or "SSL_" prefix which is not consistent across platforms. In particular
         * some IBM JVMs use the "SSL_" prefix everywhere whereas Oracle JVMs mix "TLS_" and "SSL_".
         */
        internal val ORDER_BY_NAME =
          object : Comparator<String> {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 39.9K bytes
    - Viewed (1)
  6. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

     * forgiving: it will automatically percent-encode the `|'` yielding `http://example.com/abc%7Cdef`.
     * This kind behavior is consistent with web browsers. `HttpUrl` prefers consistency with major web
     * browsers over consistency with obsolete specifications.
     *
     * ### Paths and Queries should decompose
     *
     * Neither of the built-in URL models offer direct access to path segments or query parameters.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 63.5K bytes
    - Viewed (1)
  7. okhttp/src/test/resources/okhttp3/internal/idn/README.md

    (RFC 3454). Fragments of this RFC are dumped into the files in this directory and parsed by
    `StringprepTablesReader` into a model that can be used at runtime.
    
    This format is chosen to make it easy to validate that these tables are consistent with the RFC.
    
    ```
    cd okhttp/src/test/resources/okhttp3/internal/idn/
    ls rfc3454.*.txt | xargs -n 1 -I {} bash -c "echo {} ; cat {}" > okhttp_tables.txt
    curl https://www.rfc-editor.org/rfc/rfc3454.txt > rfc3454.txt
    Plain Text
    - Registered: Fri Mar 29 11:42:11 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 618 bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/CacheTest.kt

            .build()
      }
    
      @AfterEach
      fun tearDown() {
        ResponseCache.setDefault(null)
        cache.delete()
      }
    
      /**
       * Test that response caching is consistent with the RI and the spec.
       * http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13.4
       */
      @Test
      fun responseCachingByResponseCode() {
    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)
  9. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

          }
        assertValue("a", "a", "a")
        assertValue("b", "b", "b")
        assertAbsent("c")
        assertAbsent("d")
      }
    
      /**
       * We had a bug where the cache was left in an inconsistent state after a journal write failed.
       * https://github.com/square/okhttp/issues/1211
       */
      @ParameterizedTest
      @ArgumentsSource(FileSystemParamProvider::class)
    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)
  10. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

          else -> throw IOException("unexpected journal line: $line")
        }
      }
    
      /**
       * Computes the initial size and collects garbage as a part of opening the cache. Dirty entries
       * are assumed to be inconsistent and will be deleted.
       */
      @Throws(IOException::class)
      private fun processJournal() {
        fileSystem.deleteIfExists(journalFileTmp)
        val i = lruEntries.values.iterator()
        while (i.hasNext()) {
    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)
Back to top