Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for CallFailed (0.06 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt

              .build(),
          )
        assertFailsWith<IOException> {
          call.execute()
        }
        eventRecorder.removeUpToEvent<DnsStart>()
        val callFailed: CallFailed = eventRecorder.removeUpToEvent<CallFailed>()
        assertThat(callFailed.call).isSameAs(call)
        assertThat(callFailed.ioe).isInstanceOf<UnknownHostException>()
      }
    
      @Test
      fun emptyDnsLookup() {
        val emptyDns = Dns { listOf() }
        client =
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 70.5K bytes
    - Viewed (0)
  2. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/LoggingEventListener.kt

      ) {
        logWithTime("responseFailed: $ioe")
      }
    
      override fun callEnd(call: Call) {
        logWithTime("callEnd")
      }
    
      override fun callFailed(
        call: Call,
        ioe: IOException,
      ) {
        logWithTime("callFailed: $ioe")
      }
    
      override fun canceled(call: Call) {
        logWithTime("canceled")
      }
    
      override fun satisfactionFailure(
        call: Call,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Oct 06 13:40:20 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/ClientAuthTest.kt

        // ResponseFailed, ConnectionReleased, CallFailed
        // JDK 8
        // CallStart, ProxySelectStart, ProxySelectEnd, DnsStart, DnsEnd, ConnectStart, SecureConnectStart,
        // ConnectFailed, CallFailed
        // Gradle - JDK 11
        // CallStart, ProxySelectStart, ProxySelectEnd, DnsStart, DnsEnd, ConnectStart, SecureConnectStart,
        // SecureConnectEnd, ConnectFailed, CallFailed
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 19:13:52 UTC 2025
    - 13K bytes
    - Viewed (0)
  4. okhttp-testing-support/src/main/kotlin/okhttp3/EventListenerAdapter.kt

        ioe: IOException,
      ) = onEvent(ResponseFailed(System.nanoTime(), call, ioe))
    
      override fun callEnd(call: Call) = onEvent(CallEnd(System.nanoTime(), call))
    
      override fun callFailed(
        call: Call,
        ioe: IOException,
      ) = onEvent(CallFailed(System.nanoTime(), call, ioe))
    
      override fun canceled(call: Call) = onEvent(Canceled(System.nanoTime(), call))
    
      override fun satisfactionFailure(
        call: Call,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 19:13:52 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/DispatcherTest.kt

    import java.net.UnknownHostException
    import java.util.concurrent.CountDownLatch
    import java.util.concurrent.TimeUnit
    import java.util.concurrent.atomic.AtomicBoolean
    import kotlin.test.assertFailsWith
    import okhttp3.CallEvent.CallFailed
    import okhttp3.CallEvent.CallStart
    import okhttp3.CallEvent.DispatcherQueueEnd
    import okhttp3.CallEvent.DispatcherQueueStart
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import org.junit.jupiter.api.BeforeEach
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 19:13:52 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/EventListener.kt

          for (delegate in eventListeners) {
            delegate.callEnd(call)
          }
        }
    
        override fun callFailed(
          call: Call,
          ioe: IOException,
        ) {
          for (delegate in eventListeners) {
            delegate.callFailed(call, ioe)
          }
        }
    
        override fun canceled(call: Call) {
          for (delegate in eventListeners) {
            delegate.canceled(call)
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Oct 07 21:03:04 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  7. samples/guide/src/main/java/okhttp3/recipes/PrintEventsNonConcurrent.java

          printEvent("responseFailed");
        }
    
        @Override public void callEnd(Call call) {
          printEvent("callEnd");
        }
    
        @Override public void callFailed(Call call, IOException ioe) {
          printEvent("callFailed");
        }
    
        @Override public void canceled(Call call) {
          printEvent("canceled");
        }
      }
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sun Feb 16 23:20:49 UTC 2020
    - 5.3K bytes
    - Viewed (0)
  8. okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt

          .assertLogMatch(Regex("""proxySelectStart: $url"""))
          .assertLogMatch(Regex("""proxySelectEnd: \[DIRECT]"""))
          .assertLogMatch(Regex("""dnsStart: ${url.host}"""))
          .assertLogMatch(Regex("""callFailed: java.net.UnknownHostException: reason"""))
          .assertNoMoreLogs()
      }
    
      @Test
      fun connectFail() {
        assumeNotWindows()
        server.useHttps(handshakeCertificates.sslSocketFactory())
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  9. okhttp-testing-support/src/main/kotlin/okhttp3/ClientRuleEventListener.kt

      ) {
        logWithTime("responseFailed: $ioe")
      }
    
      override fun callEnd(call: Call) {
        logWithTime("callEnd")
      }
    
      override fun callFailed(
        call: Call,
        ioe: IOException,
      ) {
        logWithTime("callFailed: $ioe")
      }
    
      override fun canceled(call: Call) {
        logWithTime("canceled")
      }
    
      override fun satisfactionFailure(
        call: Call,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Oct 07 21:03:04 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  10. samples/guide/src/main/java/okhttp3/recipes/PrintEvents.java

          printEvent("responseFailed");
        }
    
        @Override public void callEnd(Call call) {
          printEvent("callEnd");
        }
    
        @Override public void callFailed(Call call, IOException ioe) {
          printEvent("callFailed");
        }
    
        @Override public void canceled(Call call) {
          printEvent("canceled");
        }
      }
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sun Feb 16 23:20:49 UTC 2020
    - 6.1K bytes
    - Viewed (0)
Back to top