Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for shutdownOutput (0.05 sec)

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

          MockResponse
            .Builder()
            .body("This connection won't pool properly")
            .onResponseEnd(
              CloseSocket(
                closeSocket = false,
                shutdownOutput = true,
              ),
            ).build(),
        )
      }
    
      @Test
      fun invalidHost() {
        // Note that 1234.1.1.1 is an invalid host in a URI, but URL isn't as strict.
        client =
          client
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 133.2K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

        server.enqueue(MockResponse(body = "abc"))
        server.enqueue(
          MockResponse
            .Builder()
            .onResponseStart(
              CloseSocket(
                closeSocket = false,
                shutdownOutput = true,
              ),
            ).build(),
        )
        server.enqueue(MockResponse(body = "abc"))
    
        val client =
          client
            .newBuilder()
            .retryOnConnectionFailure(false)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 146.6K bytes
    - Viewed (0)
Back to top