Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for onResponseStart (0.38 seconds)

  1. okhttp-coroutines/src/test/kotlin/okhttp3/coroutines/ExecuteAsyncTest.kt

        }
      }
    
      @Test
      fun failedCall() {
        runTest {
          server.enqueue(
            MockResponse
              .Builder()
              .body("abc")
              .onResponseStart(SocketEffect.ShutdownConnection)
              .build(),
          )
    
          val call = client.newCall(request)
    
          assertFailsWith<IOException> {
            call.executeAsync().use {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Jun 20 11:46:46 GMT 2025
    - 5.3K bytes
    - Click Count (0)
  2. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/DeprecationBridge.kt

          result.onResponseEnd(ShutdownConnection)
        }
    
        SocketPolicy.DISCONNECT_AT_START -> {
          result.onRequestStart(CloseSocket())
        }
    
        SocketPolicy.DISCONNECT_AFTER_REQUEST -> {
          result.onResponseStart(CloseSocket())
        }
    
        SocketPolicy.DISCONNECT_DURING_REQUEST_BODY -> {
          result.onRequestBody(CloseSocket())
        }
    
        SocketPolicy.DISCONNECT_DURING_RESPONSE_BODY -> {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 4.3K bytes
    - Click Count (1)
Back to Top