Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for getLoopbackAddress (0.19 seconds)

  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.newCallWithListener(
            Request
              .Builder()
              .url(
                server
                  .url("/")
                  .newBuilder()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 70.7K bytes
    - Click Count (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")
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:02:18 GMT 2026
    - 146.5K bytes
    - Click Count (0)
Back to Top