Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for isOneShot (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. 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
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Mar 10 21:47:20 GMT 2026
    - 72.3K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt

        assertThat(cache.hitCount()).isEqualTo(0)
      }
    
      private fun String.toOneShotRequestBody(): RequestBody =
        object : RequestBody() {
          val internalBody = Stream.of(this)
    
          override fun isOneShot(): Boolean = true
    
          override fun contentType(): MediaType? = "application/text-plain".toMediaTypeOrNull()
    
          override fun writeTo(sink: BufferedSink) {
            internalBody.forEach { item ->
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Mar 20 09:13:37 GMT 2026
    - 121K bytes
    - Click Count (0)
  3. 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")
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:02:18 GMT 2026
    - 146.5K bytes
    - Click Count (0)
  4. 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
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Feb 15 11:57:47 GMT 2026
    - 36.2K bytes
    - Click Count (2)
Back to Top