Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 23 for responseBodyStart (0.13 sec)

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

      override fun responseHeadersEnd(
        call: Call,
        response: Response,
      ) = logEvent(ResponseHeadersEnd(System.nanoTime(), call, response.headers.byteCount()))
    
      override fun responseBodyStart(call: Call) = logEvent(ResponseBodyStart(System.nanoTime(), call))
    
      override fun responseBodyEnd(
        call: Call,
        byteCount: Long,
      ) = logEvent(ResponseBodyEnd(System.nanoTime(), call, byteCount))
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/PrintEventsNonConcurrent.java

        }
    
        @Override public void responseHeadersEnd(Call call, Response response) {
          printEvent("responseHeadersEnd");
        }
    
        @Override public void responseBodyStart(Call call) {
          printEvent("responseBodyStart");
        }
    
        @Override public void responseBodyEnd(Call call, long byteCount) {
          printEvent("responseBodyEnd");
        }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 16 23:20:49 UTC 2020
    - 5.3K bytes
    - Viewed (0)
  3. samples/guide/src/main/java/okhttp3/recipes/PrintEvents.java

        }
    
        @Override public void responseHeadersEnd(Call call, Response response) {
          printEvent("responseHeadersEnd");
        }
    
        @Override public void responseBodyStart(Call call) {
          printEvent("responseBodyStart");
        }
    
        @Override public void responseBodyEnd(Call call, long byteCount) {
          printEvent("responseBodyEnd");
        }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 16 23:20:49 UTC 2020
    - 6.1K bytes
    - Viewed (0)
  4. okhttp-testing-support/src/main/kotlin/okhttp3/CallEvent.kt

      }
    
      data class ResponseBodyStart(
        override val timestampNs: Long,
        override val call: Call,
      ) : CallEvent()
    
      data class ResponseBodyEnd(
        override val timestampNs: Long,
        override val call: Call,
        val bytesRead: Long,
      ) : CallEvent() {
        override fun closes(event: CallEvent): Boolean = event is ResponseBodyStart && call == event.call
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  5. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceHttpTest.kt

          "ConnectStart",
          "ConnectEnd",
          "ConnectionAcquired",
          "RequestHeadersStart",
          "RequestHeadersEnd",
          "ResponseHeadersStart",
          "ResponseHeadersEnd",
          "ResponseBodyStart",
          "ResponseBodyEnd",
          "ConnectionReleased",
          "CallEnd",
        )
      }
    
      private fun newEventSource(accept: String? = null): EventSource {
        val builder =
          Request.Builder()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  6. 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
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 09:14:38 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/ServerTruncatesRequestTest.kt

        expectedEvents += "RequestFailed"
        expectedEvents += "ResponseHeadersStart"
        expectedEvents += "ResponseHeadersEnd"
        expectedEvents += "ResponseBodyStart"
        expectedEvents += "ResponseBodyEnd"
        expectedEvents += "ConnectionReleased"
        expectedEvents += "CallEnd"
        assertThat(listener.recordedEventTypes()).isEqualTo(expectedEvents)
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  8. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 27K bytes
    - Viewed (0)
  9. docs/changelogs/changelog_4x.md

        a stream timeout to determine whether the connection should remain eligible for pooling.
    
     *  Fix: Don't call `EventListener.responseHeadersStart()` or `responseBodyStart()` until bytes have
        been received. Previously these events were incorrectly sent too early, when OkHttp was ready to
        read the response headers or body, which mislead tracing tools. Note that the `responseFailed()`
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 17 13:25:31 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

            override fun responseHeadersStart(call: Call) = TODO()
    
            override fun responseHeadersEnd(
              call: Call,
              response: Response,
            ) = TODO()
    
            override fun responseBodyStart(call: Call) = TODO()
    
            override fun responseBodyEnd(
              call: Call,
              byteCount: Long,
            ) = TODO()
    
            override fun responseFailed(
              call: Call,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
Back to top