Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for callFailed (0.2 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/ClientRuleEventListener.kt

      }
    
      override fun callEnd(call: Call) {
        logWithTime("callEnd")
    
        delegate.callEnd(call)
      }
    
      override fun callFailed(
        call: Call,
        ioe: IOException,
      ) {
        logWithTime("callFailed: $ioe")
    
        delegate.callFailed(call, ioe)
      }
    
      override fun canceled(call: Call) {
        logWithTime("canceled")
    
        delegate.canceled(call)
      }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6K bytes
    - Viewed (0)
  2. okhttp/src/test/java/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
        val recordedEventTypes = listener.recordedEventTypes()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/EventListenerTest.kt

              .build(),
          )
        assertFailsWith<IOException> {
          call.execute()
        }
        listener.removeUpToEvent<DnsStart>()
        val callFailed: CallFailed = listener.removeUpToEvent<CallFailed>()
        assertThat(callFailed.call).isSameAs(call)
        assertThat(callFailed.ioe).isInstanceOf<UnknownHostException>()
      }
    
      @Test
      fun emptyDnsLookup() {
        val emptyDns = Dns { listOf() }
        client =
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 56.9K bytes
    - Viewed (0)
  4. docs/features/events.md

        }
      };
    
      ...
    }
    ```
    
    ### Events with Failures
    
    When an operation fails, a failure method is called. This is `connectFailed()` for failures while building a connection to the server, and `callFailed()` when the HTTP call fails permanently. When a failure happens it is possible that a `start` event won’t have a corresponding `end` event.
    
    ![Events Diagram](../assets/images/******@****.***)
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 7.7K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/DispatcherTest.kt

        client.newCall(request).enqueue(callback)
        callback.await(request.url).assertFailure(InterruptedIOException::class.java)
        assertThat(listener.recordedEventTypes())
          .containsExactly("CallStart", "CallFailed")
      }
    
      @Test
      fun executionRejectedAfterMaxRequestsChange() {
        val request1 = newRequest("http://a/1")
        val request2 = newRequest("http://a/2")
        dispatcher.maxRequests = 1
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  6. 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");
        }
      }
    Java
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 16 23:20:49 GMT 2020
    - 6.1K bytes
    - Viewed (0)
  7. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingEventListener.kt

        ioe: IOException,
      ) = logEvent(ResponseFailed(System.nanoTime(), call, ioe))
    
      override fun callEnd(call: Call) = logEvent(CallEnd(System.nanoTime(), call))
    
      override fun callFailed(
        call: Call,
        ioe: IOException,
      ) = logEvent(CallFailed(System.nanoTime(), call, ioe))
    
      override fun canceled(call: Call) = logEvent(Canceled(System.nanoTime(), call))
    
      override fun satisfactionFailure(
        call: Call,
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9K bytes
    - Viewed (1)
  8. okhttp/src/main/kotlin/okhttp3/EventListener.kt

     * `dnsStart(call, domainName)` → `dnsEnd(call, domainName, inetAddressList)`.
     *
     * Events are typically nested with this structure:
     *
     *  * call ([callStart], [callEnd], [callFailed])
     *    * proxy selection ([proxySelectStart], [proxySelectEnd])
     *    * dns ([dnsStart], [dnsEnd])
     *    * connect ([connectStart], [connectEnd], [connectFailed])
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  9. 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,
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 01 11:07:32 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  10. 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");
        }
      }
    Java
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 16 23:20:49 GMT 2020
    - 5.3K bytes
    - Viewed (0)
Back to top