- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 27 for newClientBuilder (0.14 sec)
-
okhttp/src/test/java/okhttp3/ServerTruncatesRequestTest.kt
private val listener = RecordingEventListener() private val handshakeCertificates = platform.localhostHandshakeCertificates() private var client = clientTestRule.newClientBuilder() .eventListenerFactory(clientTestRule.wrap(listener)) .build() private lateinit var server: MockWebServer @BeforeEach fun setUp(server: MockWebServer) { this.server = server
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 9.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/RouteFailureTest.kt
) { this.server1 = server this.server2 = server2 socketFactory = SpecificHostSocketFactory(InetSocketAddress(server.hostName, server.port)) client = clientTestRule.newClientBuilder() .dns(dns) .socketFactory(socketFactory) .eventListenerFactory(clientTestRule.wrap(listener)) .build() } @Test fun http2OneBadHostOneGoodNoRetryOnConnectionFailure() {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue May 14 17:48:07 UTC 2024 - 11.9K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt
.getMethod("factory") .invoke(ofVirtual) as ThreadFactory } private fun isLoom(): Boolean { return getPlatformSystemProperty() == LOOM_PROPERTY } fun newClientBuilder(): OkHttpClient.Builder { return newClient().newBuilder() } @Synchronized private fun addEvent(event: String) { if (recordEvents) { logger?.info(event)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 10.5K bytes - Viewed (0) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt
private lateinit var client: OkHttpClient private lateinit var url: HttpUrl @BeforeEach fun setUp(server: MockWebServer) { this.server = server client = clientTestRule.newClientBuilder() .eventListenerFactory(loggingEventListenerFactory) .sslSocketFactory( handshakeCertificates.sslSocketFactory(), handshakeCertificates.trustManager, )
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Jan 14 10:20:09 UTC 2024 - 10.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CallHandshakeTest.kt
@BeforeEach fun setup(server: MockWebServer) { this.server = server server.enqueue(MockResponse()) client = clientTestRule.newClientBuilder() .sslSocketFactory( handshakeCertificates.sslSocketFactory(), handshakeCertificates.trustManager, ) .hostnameVerifier(RecordingHostnameVerifier()) .build()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 11.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/tls/ClientAuthTest.kt
if (heldCertificate != null) { builder.heldCertificate(heldCertificate, *intermediates) } val handshakeCertificates = builder.build() return clientTestRule.newClientBuilder() .sslSocketFactory( handshakeCertificates.sslSocketFactory(), handshakeCertificates.trustManager, ) .build() }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Jan 14 10:20:09 UTC 2024 - 12.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http/CancelTest.kt
} } if (connectionType != HTTP) { server.useHttps(handshakeCertificates.sslSocketFactory()) } server.start() client = clientTestRule.newClientBuilder() .socketFactory( object : DelegatingSocketFactory(SocketFactory.getDefault()) { @Throws(IOException::class) override fun configureSocket(socket: Socket): Socket {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 9.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/ConnectionListenerTest.kt
private val listener = RecordingConnectionListener() private val handshakeCertificates = localhost() open val fastFallback: Boolean get() = true private var client: OkHttpClient = clientTestRule.newClientBuilder() .connectionPool(ConnectionPool(connectionListener = listener)) .fastFallback(fastFallback) .build() @BeforeEach fun setUp(server: MockWebServer?) { this.server = server
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 9.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/FastFallbackTest.kt
dnsResults = listOf( localhostIpv4, localhostIpv6, ) client = clientTestRule.newClientBuilder() .eventListenerFactory(clientTestRule.wrap(listener)) .connectTimeout(60, TimeUnit.SECONDS) // Deliberately exacerbate slow fallbacks. .dns { dnsResults } .fastFallback(true)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 10.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/DuplexTest.kt
private lateinit var server: MockWebServer private var listener = RecordingEventListener() private val handshakeCertificates = platform.localhostHandshakeCertificates() private var client = clientTestRule.newClientBuilder() .eventListenerFactory(clientTestRule.wrap(listener)) .build() private val executorService = Executors.newScheduledThreadPool(1) @BeforeEach fun setUp(server: MockWebServer) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 23.9K bytes - Viewed (0)