- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 36 for socketFactory (0.19 sec)
-
okhttp/src/test/java/okhttp3/FastFallbackTest.kt
// Yield the first IP address so the second IP address completes first. val firstConnectLatch = CountDownLatch(1) val socketFactory = object : DelegatingSocketFactory(SocketFactory.getDefault()) { var first = true override fun createSocket(): Socket { if (first) { first = false firstConnectLatch.await()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 10.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http/CancelTest.kt
server.useHttps(handshakeCertificates.sslSocketFactory()) } server.start() client = clientTestRule.newClientBuilder() .socketFactory( object : DelegatingSocketFactory(SocketFactory.getDefault()) { @Throws(IOException::class) override fun configureSocket(socket: Socket): Socket { socket.sendBufferSize = SOCKET_BUFFER_SIZE
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 9.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt
factory.close() } @Test fun address() { val address: Address = factory.newAddress() val url: HttpUrl = address.url val dns: Dns = address.dns val socketFactory: SocketFactory = address.socketFactory val proxyAuthenticator: Authenticator = address.proxyAuthenticator val protocols: List<Protocol> = address.protocols val connectionSpecs: List<ConnectionSpec> = address.connectionSpecs
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 01 14:21:25 GMT 2024 - 46.5K bytes - Viewed (4) -
samples/tlssurvey/src/main/kotlin/okhttp3/survey/Clients.kt
ianaSuites = ianaSuites, ) } fun systemDefault( name: String, version: String, ianaSuites: IanaSuites, ): Client { val socketFactory = SSLSocketFactory.getDefault() as SSLSocketFactory val sslSocket = socketFactory.createSocket() as SSLSocket return Client( userAgent = name, version = version, enabled = sslSocket.enabledCipherSuites.map { ianaSuites.fromJavaName(it) },
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue Apr 02 01:44:15 GMT 2024 - 2.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/ChannelSocketFactory.kt
* limitations under the License. */ package okhttp3 import java.net.InetAddress import java.net.Socket import java.nio.channels.SocketChannel import javax.net.SocketFactory class ChannelSocketFactory : SocketFactory() { override fun createSocket(): Socket { return SocketChannel.open().socket() } override fun createSocket( host: String, port: Int,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 1.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt
.signedBy(compromisedIntermediateCa) .commonName(server.hostName) .build() val socketFactory = newServerSocketFactory( rogueCertificate, compromisedIntermediateCa.certificate, goodCertificate.certificate, ) server.useHttps(socketFactory) server.enqueue( MockResponse.Builder() .body("abc")
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 23.8K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/SpecificHostSocketFactory.kt
*/ package okhttp3 import java.net.InetAddress import java.net.InetSocketAddress import java.net.Socket import java.net.SocketAddress import okhttp3.internal.platform.Platform /** * A [SocketFactory] that redirects connections to [defaultAddress] or specific overridden address via [set]. */ class SpecificHostSocketFactory( val defaultAddress: InetSocketAddress?, ) : DelegatingSocketFactory(getDefault()) {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 1.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/SocketChannelTest.kt
.writeTimeout(2, SECONDS) .readTimeout(2, SECONDS) .apply { if (socketMode is TlsInstance) { if (socketMode.socketMode == Channel) { socketFactory(ChannelSocketFactory()) } connectionSpecs( listOf( ConnectionSpec.Builder(ConnectionSpec.COMPATIBLE_TLS)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 8K bytes - Viewed (0) -
okhttp-android/src/androidTest/kotlin/okhttp3/android/AndroidAsyncDnsTest.kt
val client = OkHttpClient.Builder() .dns(AsyncDns.toDns(AndroidAsyncDns.IPv4, AndroidAsyncDns.IPv6)) .socketFactory(network.socketFactory) .build() val call = client.newCall(Request("https://google.com/robots.txt".toHttpUrl())) call.execute().use { response -> assertThat(response.code).isEqualTo(200)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 5.7K bytes - Viewed (0) -
container-tests/src/test/java/okhttp3/containers/BasicProxyTest.kt
@Test fun testUrlConnectionSecureDirect() { val keyStoreFactory = KeyStoreFactory(Configuration.configuration(), MockServerLogger()) HttpsURLConnection.setDefaultSSLSocketFactory(keyStoreFactory.sslContext().socketFactory) testRequest { val url = URI(mockServer.secureEndpoint + "/person?name=peter").toURL() val connection = url.openConnection() as HttpURLConnection
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Fri Apr 05 03:30:42 GMT 2024 - 5.9K bytes - Viewed (0)