Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for isDuplex (0.64 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/EventListener.kt

     *
     * This nesting is typical but not strict. For example, when calls use "Expect: continue" the
     * request body start and end events occur within the response header events. Similarly,
     * [duplex calls][RequestBody.isDuplex] interleave the request and response bodies.
     *
     * Since connections may be reused, the proxy selection, DNS, and connect events may not be present
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Oct 07 21:03:04 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  2. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

            override fun contentType(): MediaType? = null
    
            override fun writeTo(sink: BufferedSink) {
              sink.writeUtf8("Hello request!")
              sink.close()
            }
    
            override fun isDuplex(): Boolean = true
          }
        val request =
          request()
            .post(asyncRequestBody)
            .build()
        val response = client.newCall(request).execute()
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Nov 07 02:57:33 UTC 2025
    - 39.4K bytes
    - Viewed (0)
  3. docs/changelogs/changelog_3x.md

        simultaneously. This can be used to implement interactive conversations within a single HTTP
        call.
    
        Create duplex calls by overriding the new `RequestBody.isDuplex()` method to return true.
        This simple option dramatically changes the behavior of the request body and of the entire
        call.
    
        The `RequestBody.writeTo()` method may now retain a reference to the provided sink and
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sun Feb 06 14:55:54 UTC 2022
    - 50.8K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt

        var requestBody: RequestBody =
          object : RequestBody() {
            override fun contentType(): MediaType? = TODO()
    
            override fun contentLength(): Long = TODO()
    
            override fun isDuplex(): Boolean = TODO()
    
            override fun isOneShot(): Boolean = TODO()
    
            override fun writeTo(sink: BufferedSink) = TODO()
          }
        requestBody = "".toRequestBody(null)
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 47K bytes
    - Viewed (0)
  5. okhttp/api/jvm/okhttp.api

    	public static final fun create ([BLokhttp3/MediaType;I)Lokhttp3/RequestBody;
    	public static final fun create ([BLokhttp3/MediaType;II)Lokhttp3/RequestBody;
    	public fun isDuplex ()Z
    	public fun isOneShot ()Z
    	public final fun sha256 ()Lokio/ByteString;
    	public abstract fun writeTo (Lokio/BufferedSink;)V
    }
    
    public final class okhttp3/RequestBody$Companion {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 70.2K bytes
    - Viewed (0)
  6. okhttp/api/android/okhttp.api

    	public static final fun create ([BLokhttp3/MediaType;I)Lokhttp3/RequestBody;
    	public static final fun create ([BLokhttp3/MediaType;II)Lokhttp3/RequestBody;
    	public fun isDuplex ()Z
    	public fun isOneShot ()Z
    	public final fun sha256 ()Lokio/ByteString;
    	public abstract fun writeTo (Lokio/BufferedSink;)V
    }
    
    public final class okhttp3/RequestBody$Companion {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 70.3K bytes
    - Viewed (0)
Back to top