Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getKeepAlive (0.6 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSocket.kt

      }
    
      @Throws(IOException::class)
      override fun getInputStream(): InputStream {
        return delegate!!.inputStream
      }
    
      @Throws(SocketException::class)
      override fun getKeepAlive(): Boolean {
        return delegate!!.keepAlive
      }
    
      override fun getLocalAddress(): InetAddress {
        return delegate!!.localAddress
      }
    
      override fun getLocalPort(): Int {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        assertFailsWith<IOException> {
          getResponse(Request("http://-/foo.html".toHttpUrl()))
        }
      }
    
      // The request should work once and then fail.
      @Test
      fun getKeepAlive() {
        server.enqueue(MockResponse(body = "ABC"))
    
        // The request should work once and then fail.
        val connection1 = getResponse(newRequest("/"))
        val source1 = connection1.body.source()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
Back to top