Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for responseFailed (0.23 sec)

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

      ) {
        logWithTime("responseBodyEnd: byteCount=$byteCount")
    
        delegate.responseBodyEnd(call, byteCount)
      }
    
      override fun responseFailed(
        call: Call,
        ioe: IOException,
      ) {
        logWithTime("responseFailed: $ioe")
    
        delegate.responseFailed(call, ioe)
      }
    
      override fun callEnd(call: Call) {
        logWithTime("callEnd")
    
        delegate.callEnd(call)
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/Exchange.kt

        try {
          val result = codec.readResponseHeaders(expectContinue)
          result?.initExchange(this)
          return result
        } catch (e: IOException) {
          eventListener.responseFailed(call, e)
          trackFailure(e)
          throw e
        }
      }
    
      fun responseHeadersEnd(response: Response) {
        eventListener.responseHeadersEnd(call, response)
      }
    
      @Throws(IOException::class)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.2K bytes
    - Viewed (2)
  3. okhttp/src/test/java/okhttp3/internal/http/CancelTest.kt

    import okhttp3.CallEvent.ConnectEnd
    import okhttp3.CallEvent.ConnectStart
    import okhttp3.CallEvent.ConnectionAcquired
    import okhttp3.CallEvent.ConnectionReleased
    import okhttp3.CallEvent.RequestFailed
    import okhttp3.CallEvent.ResponseFailed
    import okhttp3.DelegatingServerSocketFactory
    import okhttp3.DelegatingSocketFactory
    import okhttp3.MediaType
    import okhttp3.OkHttpClient
    import okhttp3.OkHttpClientTestRule
    import okhttp3.Protocol.HTTP_1_1
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 9.9K bytes
    - Viewed (0)
  4. samples/guide/src/main/java/okhttp3/recipes/PrintEvents.java

        }
    
        @Override public void responseBodyEnd(Call call, long byteCount) {
          printEvent("responseBodyEnd");
        }
    
        @Override public void responseFailed(Call call, IOException ioe) {
          printEvent("responseFailed");
        }
    
        @Override public void callEnd(Call call) {
          printEvent("callEnd");
        }
    
        @Override public void callFailed(Call call, IOException ioe) {
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 16 23:20:49 GMT 2020
    - 6.1K bytes
    - Viewed (0)
  5. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingEventListener.kt

      override fun responseBodyEnd(
        call: Call,
        byteCount: Long,
      ) = logEvent(ResponseBodyEnd(System.nanoTime(), call, byteCount))
    
      override fun responseFailed(
        call: Call,
        ioe: IOException,
      ) = logEvent(ResponseFailed(System.nanoTime(), call, ioe))
    
      override fun callEnd(call: Call) = logEvent(CallEnd(System.nanoTime(), call))
    
      override fun callFailed(
        call: Call,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9K bytes
    - Viewed (1)
  6. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/LoggingEventListener.kt

      override fun responseBodyEnd(
        call: Call,
        byteCount: Long,
      ) {
        logWithTime("responseBodyEnd: byteCount=$byteCount")
      }
    
      override fun responseFailed(
        call: Call,
        ioe: IOException,
      ) {
        logWithTime("responseFailed: $ioe")
      }
    
      override fun callEnd(call: Call) {
        logWithTime("callEnd")
      }
    
      override fun callFailed(
        call: Call,
        ioe: IOException,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 11:07:32 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  7. samples/guide/src/main/java/okhttp3/recipes/PrintEventsNonConcurrent.java

        }
    
        @Override public void responseBodyEnd(Call call, long byteCount) {
          printEvent("responseBodyEnd");
        }
    
        @Override public void responseFailed(Call call, IOException ioe) {
          printEvent("responseFailed");
        }
    
        @Override public void callEnd(Call call) {
          printEvent("callEnd");
        }
    
        @Override public void callFailed(Call call, IOException ioe) {
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 16 23:20:49 GMT 2020
    - 5.3K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/EventListenerTest.kt

          "RequestHeadersEnd", "ResponseHeadersStart", "ResponseHeadersEnd", "ResponseBodyStart",
          "ResponseFailed", "ConnectionReleased", "CallFailed",
        )
        val responseFailed = listener.removeUpToEvent<ResponseFailed>()
        assertThat(responseFailed.ioe.message).isEqualTo("unexpected end of stream")
      }
    
      @Test
      fun canceledCallEventSequence() {
        val call =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 56.9K bytes
    - Viewed (0)
  9. okhttp-logging-interceptor/api/logging-interceptor.api

    	public fun requestHeadersEnd (Lokhttp3/Call;Lokhttp3/Request;)V
    	public fun requestHeadersStart (Lokhttp3/Call;)V
    	public fun responseBodyEnd (Lokhttp3/Call;J)V
    	public fun responseBodyStart (Lokhttp3/Call;)V
    	public fun responseFailed (Lokhttp3/Call;Ljava/io/IOException;)V
    	public fun responseHeadersEnd (Lokhttp3/Call;Lokhttp3/Response;)V
    	public fun responseHeadersStart (Lokhttp3/Call;)V
    	public fun satisfactionFailure (Lokhttp3/Call;Lokhttp3/Response;)V
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 4.5K bytes
    - Viewed (1)
  10. okhttp/src/main/kotlin/okhttp3/EventListener.kt

     *      * request ([requestFailed])
     *        * headers ([requestHeadersStart], [requestHeadersEnd])
     *        * body ([requestBodyStart], [requestBodyEnd])
     *      * response ([responseFailed])
     *        * headers ([responseHeadersStart], [responseHeadersEnd])
     *        * body ([responseBodyStart], [responseBodyEnd])
     *
     * This nesting is typical but not strict. For example, when calls use "Expect: continue" the
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15.2K bytes
    - Viewed (0)
Back to top