Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for reduce (0.18 sec)

  1. docs/changelogs/changelog_4x.md

        Castle is great! But it's a large dependency (6.5 MiB) and its security provider feature
        impacts VM-wide behavior.
    
     *  New: Reduce contention for applications that make a very high number of concurrent requests.
        Previously OkHttp used its connection pool as a lock when making changes to connections and
    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)
  2. okhttp-coroutines/src/main/kotlin/okhttp3/JvmCallExtensions.kt

    import kotlinx.coroutines.ExperimentalCoroutinesApi
    import kotlinx.coroutines.suspendCancellableCoroutine
    import okhttp3.internal.closeQuietly
    import okio.IOException
    
    @ExperimentalCoroutinesApi // resume with a resource cleanup.
    suspend fun Call.executeAsync(): Response =
      suspendCancellableCoroutine { continuation ->
        continuation.invokeOnCancellation {
          this.cancel()
        }
        this.enqueue(
    Plain Text
    - Registered: Fri Apr 12 11:42:09 GMT 2024
    - Last Modified: Fri Apr 05 11:25:23 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/ConnectionPool.kt

    import okhttp3.internal.connection.RealConnectionPool
    import okhttp3.internal.connection.RealRoutePlanner
    import okhttp3.internal.connection.RouteDatabase
    
    /**
     * Manages reuse of HTTP and HTTP/2 connections for reduced network latency. HTTP requests that
     * share the same [Address] may share a [Connection]. This class implements the policy
     * of which connections to keep open for future use.
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 03 20:39:41 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

          (if (isCanceled()) "canceled " else "") +
            (if (forWebSocket) "web socket" else "call") +
            " to " + redactedUrl()
        )
      }
    
      internal fun redactedUrl(): String = originalRequest.url.redact()
    
      inner class AsyncCall(
        private val responseCallback: Callback,
      ) : Runnable {
        @Volatile var callsPerHost = AtomicInteger(0)
          private set
    
    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)
  5. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

        if (idleDurationNs >= IDLE_CONNECTION_HEALTHY_NS && doExtensiveChecks) {
          return socket.isHealthy(source)
        }
    
        return true
      }
    
      /** Refuse incoming streams. */
      @Throws(IOException::class)
      override fun onStream(stream: Http2Stream) {
        stream.close(ErrorCode.REFUSED_STREAM, null)
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

        val baseWithPasswordOnly = parse("http://password@host/a/b#fragment")
        assertThat(baseWithPasswordAndUsername.redact()).isEqualTo("http://host/...")
        assertThat(baseWithUsernameOnly.redact()).isEqualTo("http://host/...")
        assertThat(baseWithPasswordOnly.redact()).isEqualTo("http://host/...")
      }
    
      @Test
      fun resolveNoScheme() {
        val base = parse("http://host/a/b")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 67.9K bytes
    - Viewed (0)
  7. okhttp/api/okhttp.api

    	public final fun queryParameterValue (I)Ljava/lang/String;
    	public final fun queryParameterValues (Ljava/lang/String;)Ljava/util/List;
    	public final fun querySize ()I
    	public final fun redact ()Ljava/lang/String;
    	public final fun resolve (Ljava/lang/String;)Lokhttp3/HttpUrl;
    	public final fun scheme ()Ljava/lang/String;
    	public fun toString ()Ljava/lang/String;
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 70.2K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/Connection.kt

     *    negotiate HTTP/2.
     *
     * Unfortunately, older HTTPS servers refuse to connect when such options are presented. Rather than
     * avoiding these options entirely, this class allows a connection to be attempted with modern
     * options and then retried without them should the attempt fail.
     *
     * ## Connection Reuse
     *
     * Each connection can carry a varying number of streams, depending on the underlying protocol being
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/WebSocket.kt

     *
     *  * **Closing:** one of the peers on the web socket has initiated a graceful shutdown. The web
     *    socket will continue to transmit already-enqueued messages but will refuse to enqueue new
     *    ones.
     *
     *  * **Closed:** the web socket has transmitted all of its messages and has received all messages
     *    from the peer.
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt

       *     -> attackerIntermediate
       *         -> phonyVictim
       * ```
       *
       * Some implementations fail the TLS handshake when they see the long chain, and don't give
       * CertificatePinner the opportunity to produce a different chain from their own. This includes
       * the OpenJDK 11 TLS implementation, which itself fails the handshake when it encounters a non-CA
       * certificate.
       */
      @Test
      fun signersMustHaveCaBitSet() {
    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)
Back to top