- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for getLoopbackAddress (0.37 seconds)
-
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()Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 3K bytes - Click Count (0) -
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) -
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)