Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for CloseSocket (0.06 seconds)

  1. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/DeprecationBridge.kt

          result.onRequestStart(CloseSocket())
        }
    
        SocketPolicy.DISCONNECT_AFTER_REQUEST -> {
          result.onResponseStart(CloseSocket())
        }
    
        SocketPolicy.DISCONNECT_DURING_REQUEST_BODY -> {
          result.onRequestBody(CloseSocket())
        }
    
        SocketPolicy.DISCONNECT_DURING_RESPONSE_BODY -> {
          result.onResponseBody(CloseSocket())
        }
    
    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)
  2. okhttp/src/jvmTest/kotlin/okhttp3/CallKotlinTest.kt

              },
            ).build()
    
        server.enqueue(
          MockResponse
            .Builder()
            .body("a")
            .onResponseEnd(
              CloseSocket(
                closeSocket = false,
                shutdownOutput = true,
              ),
            ).build(),
        )
        server.enqueue(MockResponse(body = "b"))
    
        val requestA = Request(server.url("/"))
    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)
  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,
      ) : SocketEffect
    
      /**
    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