Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for FollowUpDecision (0.08 sec)

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

          "ResponseBodyEnd",
          "FollowUpDecision",
          "RequestHeadersStart",
          "RequestHeadersEnd",
          "ResponseHeadersStart",
          "ResponseHeadersEnd",
          "ResponseBodyStart",
          "ResponseBodyEnd",
          "FollowUpDecision",
          "ConnectionReleased",
          "CallEnd",
        )
        assertThat(listener.findEvent<FollowUpDecision>()).all {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 60.4K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/ClientRuleEventListener.kt

      ) {
        logWithTime("retryDecision")
    
        delegate.retryDecision(call, exception, retry)
      }
    
      override fun followUpDecision(
        call: Call,
        networkResponse: Response,
        nextRequest: Request?,
      ) {
        logWithTime("followUpDecision")
    
        delegate.followUpDecision(call, networkResponse, nextRequest)
      }
    
      private fun logWithTime(message: String) {
        val startNs = startNs
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:58:02 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt

              }
              closeActiveExchange = false
              call.eventListener.followUpDecision(call, response, null)
              return response
            }
    
            val followUpBody = followUp.body
            if (followUpBody != null && followUpBody.isOneShot()) {
              closeActiveExchange = false
              call.eventListener.followUpDecision(call, response, null)
              return response
            }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:58:02 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/DuplexTest.kt

          "ResponseBodyEnd",
          "FollowUpDecision",
          "RequestHeadersStart",
          "RequestHeadersEnd",
          "ResponseHeadersStart",
          "ResponseHeadersEnd",
          "FollowUpDecision",
          "ResponseBodyStart",
          "ResponseBodyEnd",
          "ConnectionReleased",
          "CallEnd",
          "RequestFailed",
        )
        assertThat(listener.findEvent<FollowUpDecision>()).all {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  5. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingEventListener.kt

        call: Call,
        exception: IOException,
        retry: Boolean,
      ) = logEvent(RetryDecision(System.nanoTime(), call, exception, retry))
    
      override fun followUpDecision(
        call: Call,
        networkResponse: Response,
        nextRequest: Request?,
      ) = logEvent(FollowUpDecision(System.nanoTime(), call, networkResponse, nextRequest))
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:58:02 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/HttpUpgradesTest.kt

    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/ServerTruncatesRequestTest.kt

        expectedEvents += "RequestFailed"
        expectedEvents += "ResponseHeadersStart"
        expectedEvents += "ResponseHeadersEnd"
        expectedEvents += "FollowUpDecision"
        expectedEvents += "ResponseBodyStart"
        expectedEvents += "ResponseBodyEnd"
        expectedEvents += "ConnectionReleased"
        expectedEvents += "CallEnd"
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  8. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceHttpTest.kt

    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:47:47 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  9. okhttp-testing-support/src/main/kotlin/okhttp3/CallEvent.kt

      data class RetryDecision(
        override val timestampNs: Long,
        override val call: Call,
        val exception: IOException,
        val retry: Boolean,
      ) : CallEvent()
    
      data class FollowUpDecision(
        override val timestampNs: Long,
        override val call: Call,
        val networkResponse: Response,
        val nextRequest: Request?,
      ) : CallEvent()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:58:02 UTC 2025
    - 7K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/EventListener.kt

       *
       * @param networkResponse the intermediate response that may require a follow-up request.
       * @param nextRequest the follow-up request that will be made. Null if no follow-up will be made.
       */
      open fun followUpDecision(
        call: Call,
        networkResponse: Response,
        nextRequest: Request?,
      ) {
      }
    
      fun interface Factory {
        /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:58:02 UTC 2025
    - 17.4K bytes
    - Viewed (0)
Back to top