Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for isDuplex (0.06 sec)

  1. okhttp/src/main/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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  2. 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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 14:55:54 UTC 2022
    - 50.8K bytes
    - Viewed (0)
  3. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

              return null
            }
    
            override fun writeTo(sink: BufferedSink) {
              sink.writeUtf8("Hello request!")
              sink.close()
            }
    
            override fun isDuplex(): Boolean {
              return true
            }
          }
        val request =
          request()
            .post(asyncRequestBody)
            .build()
        val response = client.newCall(request).execute()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 09:14:38 UTC 2024
    - 37.6K bytes
    - Viewed (0)
  4. okhttp/src/test/java/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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  5. okhttp/api/okhttp.api

    	public static final fun create ([BLokhttp3/MediaType;II)Lokhttp3/RequestBody;
    	public static final fun gzip (Lokhttp3/RequestBody;)Lokhttp3/RequestBody;
    	public fun isDuplex ()Z
    	public fun isOneShot ()Z
    	public abstract fun writeTo (Lokio/BufferedSink;)V
    }
    
    public final class okhttp3/RequestBody$Companion {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 13:41:01 UTC 2024
    - 70.2K bytes
    - Viewed (0)
Back to top