- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 177 for newBuilder (0.06 sec)
-
samples/slack/src/main/java/okhttp3/slack/SlackApi.java
this.port = port; } /** See https://api.slack.com/docs/oauth. */ public HttpUrl authorizeUrl(String scopes, HttpUrl redirectUrl, ByteString state, String team) { HttpUrl.Builder builder = baseUrl.newBuilder("/oauth/authorize") .addQueryParameter("client_id", clientId) .addQueryParameter("scope", scopes) .addQueryParameter("redirect_uri", redirectUrl.toString())
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Jul 06 19:30:55 UTC 2018 - 4.4K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/project/EmptyLifecycleBindingsInjector.java
} private static Plugin newPlugin(String artifactId, String... goals) { return Plugin.newBuilder() .groupId("org.apache.maven.plugins") .artifactId(artifactId) .executions(Arrays.stream(goals) .map(goal -> PluginExecution.newBuilder() .id("default-" + goal) .goals(List.of(goal))Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Mar 21 04:56:21 UTC 2025 - 5.8K bytes - Viewed (0) -
impl/maven-core/src/test/java/org/apache/maven/project/EmptyLifecycleBindingsInjector.java
} private static Plugin newPlugin(String artifactId, String... goals) { return Plugin.newBuilder() .groupId("org.apache.maven.plugins") .artifactId(artifactId) .executions(Arrays.stream(goals) .map(goal -> PluginExecution.newBuilder() .id("default-" + goal) .goals(List.of(goal))Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Mar 21 04:56:21 UTC 2025 - 5.8K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt
val call = client.newCallWithListener( Request .Builder() .url( server .url("/") .newBuilder() .host(ipAddress!!) .build(), ).build(), ) val response = call.execute() assertThat(response.code).isEqualTo(200)Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Nov 05 18:28:35 UTC 2025 - 70.5K bytes - Viewed (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)
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Nov 04 19:13:52 UTC 2025 - 147.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt
) } @Test fun webSocketAndApplicationInterceptors() { val interceptedCount = AtomicInteger() client = client .newBuilder() .addInterceptor( Interceptor { chain: Interceptor.Chain -> assertThat(chain.request().body).isNull() val response = chain.proceed(chain.request())
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Nov 04 19:13:52 UTC 2025 - 35.5K bytes - Viewed (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(),
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Nov 04 19:13:52 UTC 2025 - 11.6K bytes - Viewed (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(
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 13K bytes - Viewed (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("/"))
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 12.2K bytes - Viewed (1) -
guava-tests/test/com/google/common/collect/InternersTest.java
} public void testConcurrencyLevel_zero() { Interners.InternerBuilder builder = Interners.newBuilder(); assertThrows(IllegalArgumentException.class, () -> builder.concurrencyLevel(0)); } public void testConcurrencyLevel_negative() { Interners.InternerBuilder builder = Interners.newBuilder(); assertThrows(IllegalArgumentException.class, () -> builder.concurrencyLevel(-42)); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Dec 08 17:02:07 UTC 2025 - 4.3K bytes - Viewed (0)