Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for CallFailed (0.05 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. 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)
  8. android-test/src/test/kotlin/okhttp/android/test/AndroidLoggingTest.kt

        ).containsExactly(
          "callStart: Request{method=GET, url=http://google.com/robots.txt}",
          "proxySelectStart: http://google.com/",
          "proxySelectEnd: [DIRECT]",
          "dnsStart: google.com",
          "callFailed: java.net.UnknownHostException: shortcircuit",
        )
        // We should consider if these logs should retain Exceptions
        assertThat(logs.last().throwable).isNull()
      }
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu Aug 21 14:27:04 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  9. okhttp-testing-support/src/main/kotlin/okhttp3/CallEvent.kt

        override val timestampNs: Long,
        override val call: Call,
      ) : CallEvent() {
        override fun closes(event: CallEvent): Boolean = event is CallStart && call == event.call
      }
    
      data class CallFailed(
        override val timestampNs: Long,
        override val call: Call,
        val ioe: IOException,
      ) : CallEvent() {
        override fun closes(event: CallEvent): Boolean = event is CallStart && call == event.call
      }
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Oct 06 13:40:20 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  10. okhttp-logging-interceptor/api/logging-interceptor.api

    	public fun cacheConditionalHit (Lokhttp3/Call;Lokhttp3/Response;)V
    	public fun cacheHit (Lokhttp3/Call;Lokhttp3/Response;)V
    	public fun cacheMiss (Lokhttp3/Call;)V
    	public fun callEnd (Lokhttp3/Call;)V
    	public fun callFailed (Lokhttp3/Call;Ljava/io/IOException;)V
    	public fun callStart (Lokhttp3/Call;)V
    	public fun canceled (Lokhttp3/Call;)V
    	public fun connectEnd (Lokhttp3/Call;Ljava/net/InetSocketAddress;Ljava/net/Proxy;Lokhttp3/Protocol;)V
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Oct 07 15:15:46 UTC 2025
    - 4.6K bytes
    - Viewed (0)
Back to top