- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 167 for NewBuilder (0.09 sec)
-
okhttp-brotli/src/main/kotlin/okhttp3/brotli/BrotliInterceptor.kt
*/ object BrotliInterceptor : Interceptor { override fun intercept(chain: Interceptor.Chain): Response { return if (chain.request().header("Accept-Encoding") == null) { val request = chain.request().newBuilder() .header("Accept-Encoding", "br,gzip") .build() val response = chain.proceed(request) uncompress(response) } else { chain.proceed(chain.request()) } }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.3K bytes - Viewed (0) -
samples/compare/src/test/kotlin/okhttp3/compare/JavaHttpClientTest.kt
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.7K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/DefaultProfileInjector.java
if (profile != null) { Model.Builder builder = Model.newBuilder(model); merger.mergeModelBase(builder, model, profile); if (profile.getBuild() != null) { Build build = model.getBuild() != null ? model.getBuild() : Build.newInstance(); Build.Builder bbuilder = Build.newBuilder(build);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 10.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Interners.java
if (!strong) { mapMaker.weakKeys(); } return new InternerImpl<>(mapMaker); } } /** Returns a fresh {@link InternerBuilder} instance. */ public static InternerBuilder newBuilder() { return new InternerBuilder(); } /** * Returns a new thread-safe interner which retains a strong reference to each instance it has
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Mar 13 14:30:51 UTC 2023 - 5.9K bytes - Viewed (0) -
okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt
if (post) { url(url) .cacheUrlOverride( url.newBuilder() .addQueryParameter("hostname", hostname).build(), ) .post(query.toRequestBody(DNS_MESSAGE)) } else { val encoded = query.base64Url().replace("=", "") val requestUrl = url.newBuilder().addQueryParameter("dns", encoded).build() url(requestUrl) }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Oct 31 09:27:31 UTC 2024 - 9.8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/ServerTruncatesRequestTest.kt
} private fun enableProtocol(protocol: Protocol) { enableTls() client = client.newBuilder() .protocols(listOf(protocol, Protocol.HTTP_1_1)) .build() server.protocols = client.protocols } private fun enableTls() { client = client.newBuilder() .sslSocketFactory( handshakeCertificates.sslSocketFactory(),
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 9.5K bytes - Viewed (0) -
mockwebserver/src/test/java/mockwebserver3/MockResponseSniTest.kt
handshakeCertificates.sslSocketFactory(), handshakeCertificates.trustManager, ) .dns(dns) .build() server.enqueue(MockResponse()) val url = server.url("/").newBuilder().host("localhost.localdomain").build() val call = client.newCall(Request(url = url)) val response = call.execute() assertThat(response.isSuccessful).isTrue() val recordedRequest = server.takeRequest()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/SessionReuseTest.kt
return sslSocket.apply { if (reuseSession) { this.enableSessionCreation = false } } } } client = client.newBuilder() .connectionSpecs(listOf(spec)) .eventListenerFactory( clientTestRule.wrap( object : EventListener() { override fun connectionAcquired( call: Call,
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 6K bytes - Viewed (0) -
guava/src/com/google/common/collect/Interners.java
if (!strong) { mapMaker.weakKeys(); } return new InternerImpl<>(mapMaker); } } /** Returns a fresh {@link InternerBuilder} instance. */ public static InternerBuilder newBuilder() { return new InternerBuilder(); } /** * Returns a new thread-safe interner which retains a strong reference to each instance it has
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Mar 13 14:30:51 UTC 2023 - 5.9K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/cache/ChainBenchmark.java
private @Nullable ReferenceEntry<Object, Object> chain; @SuppressWarnings("GuardedBy") @BeforeExperiment void setUp() { LocalCache<Object, Object> cache = new LocalCache<>(CacheBuilder.newBuilder().concurrencyLevel(1), null); segment = cache.segments[0]; chain = null; for (int i = 0; i < length; i++) { Object key = new Object();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 17 15:19:38 UTC 2023 - 2.1K bytes - Viewed (0)