Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getLoopbackAddress (0.11 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/UtilTest.kt

    import okio.buffer
    import okio.source
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.assertThrows
    
    class UtilTest {
      @Test
      fun socketIsHealthy() {
        val localhost = InetAddress.getLoopbackAddress()
        val serverSocket = ServerSocket(0, 1, localhost)
    
        val socket = Socket()
        socket.connect(serverSocket.localSocketAddress)
        val socketSource = socket.source().buffer()
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt

      @Test
      fun successfulCallEventSequenceForIpAddress() {
        server.enqueue(
          MockResponse
            .Builder()
            .body("abc")
            .build(),
        )
        val ipAddress = InetAddress.getLoopbackAddress().hostAddress
        val call =
          client.newCall(
            Request
              .Builder()
              .url(
                server
                  .url("/")
                  .newBuilder()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 60.4K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

        assertThat(client.connectionPool.idleConnectionCount()).isEqualTo(1)
      }
    
      @Test
      fun httpsWithIpAddress() {
        platform.assumeNotBouncyCastle()
    
        val localIpAddress = InetAddress.getLoopbackAddress().hostAddress
    
        // Create a certificate with an IP address in the subject alt name.
        val heldCertificate =
          HeldCertificate
            .Builder()
            .commonName("example.com")
    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