Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for correctly (0.18 sec)

  1. okhttp/src/test/java/okhttp3/MediaTypeTest.kt

        )
        assertInvalid(
          "text/plain; a=\"@",
          "Parameter is not formatted correctly: \"a=\"@\" for: \"text/plain; a=\"@\"",
        )
        assertInvalid(
          "text/plain; a=1; b",
          "Parameter is not formatted correctly: \"b\" for: \"text/plain; a=1; b\"",
        )
        assertInvalid(
          "text/plain; a=1; b=",
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        inputStream.close()
        val elapsedNanos = System.nanoTime() - startNanos
        val elapsedMillis = TimeUnit.NANOSECONDS.toMillis(elapsedNanos)
    
        // If we're working correctly, this should be greater than 100ms, but less than double that.
        // Previously we had a bug where we would download the entire response body as long as no
        // individual read took longer than 100ms.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/-MediaTypeCommon.kt

      var s = typeSubtype.range.last + 1
      while (s < length) {
        val parameter = PARAMETER.matchAtPolyfill(this, s)
        require(parameter != null) {
          "Parameter is not formatted correctly: \"${substring(s)}\" for: \"$this\""
        }
    
        val name = parameter.groups[1]?.value
        if (name == null) {
          s = parameter.range.last + 1
          continue
        }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/publicsuffix/PublicSuffixListGenerator.kt

            importResults.writeOut(sink)
          }
        }
    
      /**
       * These assertions ensure the [PublicSuffixDatabase] remains correct. The specification is
       * very flexible regarding wildcard rules, but this flexibility is not something currently used
       * in practice. To simplify the implementation, we've avoided implementing the flexible rules in
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Thu Apr 18 01:24:38 GMT 2024
    - 6K bytes
    - Viewed (0)
  5. docs/changelogs/changelog_4x.md

     *  Upgrade: [Kotlin 1.3.71][kotlin_1_3_71].
    
    
    ## Version 4.5.0
    
    _2020-04-06_
    
    **This release fixes a severe bug where OkHttp incorrectly detected and recovered from unhealthy
    connections.** Stale or canceled connections were incorrectly attempted when they shouldn't have
    been, leading to rare cases of infinite retries. Please upgrade to this release!
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/ConnectionPool.kt

     *
     * @constructor Create a new connection pool with tuning parameters appropriate for a single-user
     * application. The tuning parameters in this pool are subject to change in future OkHttp releases.
     * Currently this pool holds up to 5 idle connections which will be evicted after 5 minutes of
     * inactivity.
     */
    class ConnectionPool internal constructor(
      internal val delegate: RealConnectionPool,
    ) {
      internal constructor(
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 03 20:39:41 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/Authenticator.kt

      /**
       * Returns a request that includes a credential to satisfy an authentication challenge in
       * [response]. Returns null if the challenge cannot be satisfied.
       *
       * The route is best effort, it currently may not always be provided even when logically
       * available. It may also not be provided when an authenticator is re-used manually in an
       * application interceptor, such as when implementing client-specific retries.
       */
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt

      /** User-supplied additional data persisted with the source data. */
      private val metadata: ByteString,
      /** The maximum size of [buffer]. */
      val bufferMaxSize: Long,
    ) {
      /** The thread that currently has access to upstream. Possibly null. Guarded by this. */
      var upstreamReader: Thread? = null
    
      /**
       * A buffer for [upstreamReader] to use when pulling bytes from upstream. Only the
    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)
  9. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

      override fun clone(): Call = RealCall(client, originalRequest, forWebSocket)
    
      override fun request(): Request = originalRequest
    
      /**
       * Immediately closes the socket connection if it's currently held. Use this to interrupt an
       * in-flight request from any thread. It's the caller's responsibility to close the request body
       * and response body streams; otherwise resources may be leaked.
       *
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 17.9K bytes
    - Viewed (2)
  10. okhttp/src/test/java/okhttp3/RequestCommonTest.kt

        assertThat(request.tag<Any>()).isSameAs(objectTag)
        assertThat(request.tag(Any::class)).isSameAs(objectTag)
        assertThat(request.tag(String::class)).isSameAs(stringTag)
    
        // TODO check for Jvm or handle Long/long correctly
    //    assertThat(request.tag(Long::class)).isSameAs(longTag)
      }
    
      /** Confirm that we don't accidentally share the backing map between objects. */
      @Test
      fun tagsAreImmutable() {
        val builder =
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.7K bytes
    - Viewed (0)
Back to top