Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for isOneShot (0.18 sec)

  1. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

              counter++
              assertThat(counter).isLessThanOrEqualTo(1)
              sink.writeUtf8("Hello request!")
              sink.close()
            }
    
            override fun isOneShot() = true
          }
        val request =
          request()
            .post(asyncRequestBody)
            .build()
        val response = client.newCall(request).execute()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Aug 21 14:27:04 UTC 2025
    - 37.5K bytes
    - Viewed (0)
  2. docs/changelogs/changelog_4x.md

        between Kotlin's `assert()` and Java's `assert()`. (Kotlin always evaluates the argument; Java
        only does when assertions are enabled.)
    
     *  Fix: Honor `RequestBody.isOneShot()` in `HttpLoggingInterceptor`.
    
    
    ## Version 4.2.2
    
    _2019-10-06_
    
     *  Fix: When closing a canceled HTTP/2 stream, don't send the `END_STREAM` flag. This could cause
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Apr 17 13:25:31 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  3. CHANGELOG.md

     *  New: `OkHttpClient.webSocketCloseTimeout` configures how long a web socket connection will wait
        for a graceful shutdown before it performs an abrupt shutdown.
    
     *  Fix: Honor `RequestBody.isOneShot()` in `MultipartBody`
    
     *  Fix in `okhttp-coroutines`: Don't leak response bodies in `executeAsync()`. We had a bug where
        we didn't call `Response.close()` if the coroutine was canceled before its response was
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 19:32:33 UTC 2025
    - 31.6K bytes
    - Viewed (2)
  4. okhttp/api/android/okhttp.api

    	public final fun -deprecated_type ()Lokhttp3/MediaType;
    	public final fun boundary ()Ljava/lang/String;
    	public fun contentLength ()J
    	public fun contentType ()Lokhttp3/MediaType;
    	public fun isOneShot ()Z
    	public final fun part (I)Lokhttp3/MultipartBody$Part;
    	public final fun parts ()Ljava/util/List;
    	public final fun size ()I
    	public final fun type ()Lokhttp3/MediaType;
    	public fun writeTo (Lokio/BufferedSink;)V
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 69.4K bytes
    - Viewed (0)
  5. docs/changelogs/changelog_3x.md

        most common use of duplex calls is [gRPC][grpc_http2].
    
     *  New: Prevent OkHttp from retransmitting a request body by overriding `RequestBody.isOneShot()`.
        This is most useful when writing the request body is destructive.
    
     *  New: We've added `requestFailed()` and `responseFailed()` methods to `EventListener`. These
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 14:55:54 UTC 2022
    - 50.8K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

                override fun contentType(): MediaType? = null
    
                override fun writeTo(sink: BufferedSink) {
                  sink.writeUtf8("attempt " + attempt++)
                }
    
                override fun isOneShot(): Boolean = true
              },
          )
        val response = client.newCall(request).execute()
        assertThat(response.code).isEqualTo(503)
        assertThat(response.body.string()).isEqualTo("please retry")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 146.6K bytes
    - Viewed (0)
Back to top