Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for isOneShot (0.04 seconds)

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

  1. 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)
Back to Top