Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for onResponseEnd (0.24 seconds)

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

                chain.proceed(chain.request())
              },
            ).build()
    
        server.enqueue(
          MockResponse
            .Builder()
            .body("a")
            .onResponseEnd(
              CloseSocket(
                closeSocket = false,
                shutdownOutput = true,
              ),
            ).build(),
        )
        server.enqueue(MockResponse(body = "b"))
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Jun 20 11:46:46 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  2. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/DeprecationBridge.kt

          result.failHandshake()
        }
    
        SocketPolicy.SHUTDOWN_INPUT_AT_END -> {
          result.onResponseEnd(
            CloseSocket(
              closeSocket = false,
              shutdownInput = true,
            ),
          )
        }
    
        SocketPolicy.SHUTDOWN_OUTPUT_AT_END -> {
          result.onResponseEnd(
            CloseSocket(
              closeSocket = false,
              shutdownOutput = true,
            ),
    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)
  3. mockwebserver/src/main/kotlin/mockwebserver3/SocketEffect.kt

     */
    public sealed interface SocketEffect {
      /**
       * Close the TCP socket that carries this request.
       *
       * Using this as [MockResponse.onResponseEnd] is the default for HTTP/1.0.
       */
      public class CloseSocket(
        public val closeSocket: Boolean = true,
        public val shutdownInput: Boolean = false,
        public val shutdownOutput: Boolean = false,
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Jun 20 11:46:46 GMT 2025
    - 1.6K bytes
    - Click Count (0)
Back to Top