Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getLoopbackAddress (0.15 sec)

  1. 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)
  2. 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