Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 13 of 13 for isOneShot (0.06 sec)

  1. okhttp/api/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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 13:41:01 UTC 2024
    - 70.2K bytes
    - Viewed (0)
  2. 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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 14:55:54 UTC 2022
    - 50.8K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CallTest.kt

                  return null
                }
    
                override fun writeTo(sink: BufferedSink) {
                  sink.writeUtf8("attempt " + attempt++)
                }
    
                override fun isOneShot(): Boolean {
                  return true
                }
              },
          )
        val response = client.newCall(request).execute()
        assertThat(response.code).isEqualTo(503)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
Back to top