- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for readTimeouts (0.17 sec)
-
okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt
* including on [Source] of the [Response]. The default value is 10 seconds. * * @see Socket.setSoTimeout * @see Source.timeout */ fun readTimeout( timeout: Long, unit: TimeUnit, ) = apply { readTimeout = checkDuration("timeout", timeout, unit) } /** * Sets the default read timeout for new connections. A value of 0 means no timeout, otherwise
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 06 04:21:33 UTC 2024 - 52K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Apr 11 22:09:35 UTC 2024 - 75.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt
peer.acceptFrame() // RST_STREAM peer.play() // Play it back. val connection = connect(peer) val stream = connection.newStream(headerEntries("b", "banana"), false) stream.readTimeout().timeout(500, TimeUnit.MILLISECONDS) val startNanos = System.nanoTime() assertFailsWith<InterruptedIOException> { stream.takeHeaders() } val elapsedNanos = System.nanoTime() - startNanos
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 20 17:03:43 UTC 2024 - 75.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/EventListenerTest.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(), ) assertFailsWith<IOException> {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 56.9K bytes - Viewed (2) -
okhttp/api/okhttp.api
public final fun proxySelector (Ljava/net/ProxySelector;)Lokhttp3/OkHttpClient$Builder; public final fun readTimeout (JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder; public final fun readTimeout (Ljava/time/Duration;)Lokhttp3/OkHttpClient$Builder; public final fun readTimeout-LRDsOJo (J)Lokhttp3/OkHttpClient$Builder; public final fun retryOnConnectionFailure (Z)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)