- Sort Score
- Result 10 results
- Languages All
Results 11 - 16 of 16 for callTimeout (0.13 sec)
-
okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt
.writeTimeout(Duration.ZERO) .callTimeout(Duration.ofMillis(100)) .build() newWebSocket() clientListener.assertFailure(InterruptedIOException::class.java, "timeout") } @Test @Throws(Exception::class) fun callTimeoutDoesNotApplyOnceConnected() { client = client.newBuilder() .callTimeout(Duration.ofMillis(100)) .build()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Mar 31 17:16:15 UTC 2024 - 35.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt
} @Test fun okHttpClientBuilder() { var builder: OkHttpClient.Builder = OkHttpClient.Builder() builder = builder.callTimeout(0L, TimeUnit.SECONDS) builder = builder.callTimeout(Duration.ofSeconds(0L)) builder = builder.connectTimeout(0L, TimeUnit.SECONDS) builder = builder.connectTimeout(Duration.ofSeconds(0L))
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 01 14:21:25 UTC 2024 - 46.5K bytes - Viewed (0) -
okhttp/api/okhttp.api
public final fun build ()Lokhttp3/OkHttpClient; public final fun cache (Lokhttp3/Cache;)Lokhttp3/OkHttpClient$Builder; public final fun callTimeout (JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder; public final fun callTimeout (Ljava/time/Duration;)Lokhttp3/OkHttpClient$Builder; public final fun callTimeout-LRDsOJo (J)Lokhttp3/OkHttpClient$Builder; public final fun certificatePinner (Lokhttp3/CertificatePinner;)Lokhttp3/OkHttpClient$Builder;
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 15 13:41:01 UTC 2024 - 70.2K bytes - Viewed (0) -
CHANGELOG.md
other engines on other platforms. [Ktor] does this pretty well today! * Breaking: Use `kotlin.time.Duration` in APIs like `OkHttpClient.Builder.callTimeout()`. This update also drops support for the `DurationUnit` functions introduced in earlier alpha releases of OkHttp 5. * Breaking: Reorder the parameters in the Cache constructor that was introduced in 5.0.0-alpha.3.
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Apr 18 01:31:39 UTC 2024 - 21.4K bytes - Viewed (0) -
docs/recipes.md
private val client: OkHttpClient = OkHttpClient.Builder() .connectTimeout(5, TimeUnit.SECONDS) .writeTimeout(5, TimeUnit.SECONDS) .readTimeout(5, TimeUnit.SECONDS) .callTimeout(10, TimeUnit.SECONDS) .build() fun run() { val request = Request.Builder() .url("http://httpbin.org/delay/2") // This URL is served with a 2 second delay. .build()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Fri Feb 18 08:52:22 UTC 2022 - 40.2K bytes - Viewed (0) -
docs/changelogs/changelog_3x.md
reading the full response body. If a call requires redirects or retries all must complete within one timeout period. Use `OkHttpClient.Builder.callTimeout()` to specify the default duration and `Call.timeout()` to specify the timeout of an individual call. * New: Return values and fields are now non-null unless otherwise annotated.
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Feb 06 14:55:54 UTC 2022 - 50.8K bytes - Viewed (0)