Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 76 for fallback (0.15 sec)

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

        e: IOException,
      )
    
      /**
       * Called when the HTTP response was successfully returned by the remote server. The callback may
       * proceed to read the response body with [Response.body]. The response is still live until its
       * response body is [closed][ResponseBody]. The recipient of the callback may consume the response
       * body on another thread.
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  2. docs/changelogs/changelog_2x.md

     *  **TLS configuration updated.** OkHttp now explicitly enables TLSv1.2,
        TLSv1.1 and TLSv1.0 where they are supported. It will continue to perform
        only one fallback, to SSLv3. Applications can now configure this with the
        `ConnectionSpec` class.
    
        To disable TLS fallback:
    
        ```java
        client.setConnectionSpecs(Arrays.asList(
            ConnectionSpec.MODERN_TLS, ConnectionSpec.CLEARTEXT));
        ```
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 26.6K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CallTest.kt

        client.newCall(Request.Builder().url(server.url("/a")).build()).enqueue(callback)
        callback.await(server.url("/a")).assertBody("abc")
        client.newCall(Request.Builder().url(server.url("/b")).build()).enqueue(callback)
        callback.await(server.url("/b")).assertBody("def")
        client.newCall(Request.Builder().url(server.url("/c")).build()).enqueue(callback)
        callback.await(server.url("/c")).assertBody("ghi")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  4. okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt

       */
      fun newClient(): OkHttpClient {
        var client = testClient
        if (client == null) {
          client =
            initialClientBuilder()
              .dns(SINGLE_INET_ADDRESS_DNS) // Prevent unexpected fallback addresses.
              .eventListenerFactory { ClientRuleEventListener(logger = ::addEvent) }
              .build()
          connectionListener.forbidLock(RealConnectionPool.get(client.connectionPool))
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  5. okhttp-sse/src/test/java/okhttp3/sse/internal/ServerSentEventIteratorTest.kt

          |
          """.trimMargin(),
        )
        assertThat(callbacks).isEmpty()
      }
    
      private fun consumeEvents(source: String) {
        val callback: ServerSentEventReader.Callback =
          object : ServerSentEventReader.Callback {
            override fun onEvent(
              id: String?,
              type: String?,
              data: String,
            ) {
              callbacks.add(Event(id, type, data))
            }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  6. docs/changelogs/changelog_3x.md

    ## Version 3.7.0
    
    _2017-04-15_
    
     *  **OkHttp no longer recovers from TLS handshake failures by attempting a TLSv1 connection.**
        The fallback was necessary for servers that implemented version negotiation incorrectly. Now
        that 99.99% of servers do it right this fallback is obsolete.
     *  Fix: Do not honor cookies set on a public domain. Previously a malicious site could inject
    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)
  7. okhttp-sse/src/main/kotlin/okhttp3/sse/internal/ServerSentEventReader.kt

      private val source: BufferedSource,
      private val callback: Callback,
    ) {
      private var lastId: String? = null
    
      interface Callback {
        fun onEvent(
          id: String?,
          type: String?,
          data: String,
        )
    
        fun onRetryChange(timeMs: Long)
      }
    
      /**
       * Process the next event. This will result in a single call to [Callback.onEvent] *unless* the
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

              responseCallback.onResponse(this@RealCall, response)
            } catch (e: IOException) {
              if (signalledCallback) {
                // Do not signal the callback twice!
                Platform.get().log("Callback failure for ${toLoggableString()}", Platform.INFO, e)
              } else {
                responseCallback.onFailure(this@RealCall, e)
              }
            } catch (t: Throwable) {
              cancel()
    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)
  9. okhttp-coroutines/src/main/kotlin/okhttp3/JvmCallExtensions.kt

    suspend fun Call.executeAsync(): Response =
      suspendCancellableCoroutine { continuation ->
        continuation.invokeOnCancellation {
          this.cancel()
        }
        this.enqueue(
          object : Callback {
            override fun onFailure(
              call: Call,
              e: IOException,
            ) {
              continuation.resumeWithException(e)
            }
    
            override fun onResponse(
              call: Call,
    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)
  10. okhttp-android/api/okhttp-android.api

    	public synthetic fun <init> (Lokhttp3/AsyncDns$DnsClass;Landroid/net/Network;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
    	public fun query (Ljava/lang/String;Lokhttp3/AsyncDns$Callback;)V
    }
    
    public final class okhttp3/android/AndroidAsyncDns$Companion {
    	public final fun getIPv4 ()Lokhttp3/android/AndroidAsyncDns;
    	public final fun getIPv6 ()Lokhttp3/android/AndroidAsyncDns;
    }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 11:07:32 GMT 2024
    - 1.3K bytes
    - Viewed (1)
Back to top