- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 153 for newBuilder (0.25 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
okhttp/src/jvmTest/kotlin/okhttp3/OkHttpClientTest.kt
.newBuilder() .protocols(listOf(Protocol.HTTP_1_1)) .build() .routeDatabase, ) assertNotSame( client.routeDatabase, client .newBuilder() .connectionSpecs(listOf(ConnectionSpec.COMPATIBLE_TLS)) .build() .routeDatabase, ) assertNotSame( client.routeDatabase, client .newBuilder()Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 13.4K bytes - Click Count (1) -
okhttp/src/jvmTest/kotlin/okhttp3/InterceptorTest.kt
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Nov 04 16:11:23 GMT 2025 - 28.2K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/ValueGraphBuilder.java
} ValueGraphBuilder<N, V> copy() { ValueGraphBuilder<N, V> newBuilder = new ValueGraphBuilder<>(directed); newBuilder.allowsSelfLoops = allowsSelfLoops; newBuilder.nodeOrder = nodeOrder; newBuilder.expectedNodeCount = expectedNodeCount; newBuilder.incidentEdgeOrder = incidentEdgeOrder; return newBuilder; } @SuppressWarnings("unchecked")
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Apr 02 14:49:41 GMT 2026 - 7.8K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ConnectionReuseTest.kt
val request = Request(server.url("/")) assertConnectionNotReused(request, request) } @Test fun connectionsAreNotReusedIfPoolIsSizeZero() { client = client .newBuilder() .connectionPool(ConnectionPool(0, 5, TimeUnit.SECONDS)) .build() server.enqueue(MockResponse(body = "a")) server.enqueue(MockResponse(body = "b")) val request = Request(server.url("/"))
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 12.3K bytes - Click Count (1) -
android/guava/src/com/google/common/graph/GraphBuilder.java
} GraphBuilder<N> copy() { GraphBuilder<N> newBuilder = new GraphBuilder<>(directed); newBuilder.allowsSelfLoops = allowsSelfLoops; newBuilder.nodeOrder = nodeOrder; newBuilder.expectedNodeCount = expectedNodeCount; newBuilder.incidentEdgeOrder = incidentEdgeOrder; return newBuilder; } @SuppressWarnings("unchecked")
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Apr 02 14:49:41 GMT 2026 - 7.2K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/RouteFailureTest.kt
enableTls() client = client .newBuilder() .protocols(listOf(protocol, Protocol.HTTP_1_1)) .build() server1.protocols = client.protocols server2.protocols = client.protocols } private fun enableTls() { client = client .newBuilder() .sslSocketFactory( handshakeCertificates.sslSocketFactory(),
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sat Jan 10 15:25:06 GMT 2026 - 11.8K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CookiesTest.kt
private var client = clientTestRule.newClient() @Test fun testNetscapeResponse() { val cookieManager = CookieManager(null, CookiePolicy.ACCEPT_ORIGINAL_SERVER) client = client .newBuilder() .cookieJar(JavaNetCookieJar(cookieManager)) .build() val urlWithIpAddress = urlWithIpAddress(server, "/path/foo") server.enqueue( MockResponse .Builder() .addHeader(
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Mar 19 07:46:39 GMT 2026 - 14.5K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
server.enqueue(MockResponse(body = "def")) server.enqueue(MockResponse(body = "ghi")) client = client.newBuilder().build() executeSynchronously("/a").assertBody("abc") client = client.newBuilder().build() executeSynchronously("/b").assertBody("def") client = client.newBuilder().build() executeSynchronously("/c").assertBody("ghi") assertThat(server.takeRequest().exchangeIndex).isEqualTo(0)
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) -
okhttp/src/jvmTest/kotlin/okhttp3/ConnectionListenerTest.kt
fun failedCallEventSequence() { server.enqueue( MockResponse .Builder() .headersDelay(2, TimeUnit.SECONDS) .build(), ) client = client .newBuilder() .readTimeout(Duration.ofMillis(250)) .build() val call = client.newCall( Request .Builder() .url(server.url("/")) .build(), )
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Nov 04 18:33:48 GMT 2025 - 9.7K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ConnectionCoalescingTest.kt
val differentDnsUrl = url.newBuilder().host("differentdns.com").build() assertFailsWith<IOException> { execute(differentDnsUrl) } } @Test fun skipsOnRedirectWhenDnsDontMatch() { server.enqueue( MockResponse .Builder() .code(301) .addHeader("Location", url.newBuilder().host("differentdns.com").build()) .build(), )
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Jun 19 11:44:16 GMT 2025 - 19.1K bytes - Click Count (0)