Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for writeTimeout (0.36 sec)

  1. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

         * The write timeout is applied for individual write IO operations. The default value is 10
         * seconds.
         *
         * @see Sink.timeout
         */
        fun writeTimeout(
          timeout: Long,
          unit: TimeUnit,
        ) = apply {
          writeTimeout = checkDuration("timeout", timeout, unit)
        }
    
        /**
         * Sets the default write timeout for new connections. A value of 0 means no timeout, otherwise
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:21:33 GMT 2024
    - 52K bytes
    - Viewed (0)
  2. okhttp/api/okhttp.api

    	public final fun webSocketCloseTimeout-LRDsOJo (J)Lokhttp3/OkHttpClient$Builder;
    	public final fun writeTimeout (JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder;
    	public final fun writeTimeout (Ljava/time/Duration;)Lokhttp3/OkHttpClient$Builder;
    	public final fun writeTimeout-LRDsOJo (J)Lokhttp3/OkHttpClient$Builder;
    }
    
    public final class okhttp3/OkHttpClient$Companion {
    }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 70.2K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        val stream = connection.newStream(headerEntries("b", "banana"), true)
        val sink = stream.getSink()
        sink.write(Buffer().writeUtf8("abcde"), 5)
        stream.writeTimeout().timeout(500, TimeUnit.MILLISECONDS)
        val startNanos = System.nanoTime()
        sink.write(Buffer().writeUtf8("f"), 1)
        assertFailsWith<InterruptedIOException> {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 75.4K bytes
    - Viewed (0)
Back to top