Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for multipartReader (0.07 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/MultipartReaderTest.kt

                  }
                }
              },
            ).build()
        val buffer = Buffer()
        multipartBody.writeTo(buffer)
    
        val multipartReader = MultipartReader(buffer, "foo")
        val onlyPart = multipartReader.nextPart()!!
        assertThat(onlyPart.headers).isEqualTo(
          headersOf(
            "header-name",
            "header-value",
            "Content-Type",
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 02:11:14 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  2. docs/changelogs/changelog_4x.md

     *  New: `MultipartReader` is a streaming decoder for [MIME multipart (RFC 2045)][rfc_2045]
        messages. It complements `MultipartBody` which is our streaming encoder.
    
        ```kotlin
        val response: Response = call.execute()
        val multipartReader = MultipartReader(response.body!!)
    
        multipartReader.use {
          while (true) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Apr 17 13:25:31 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  3. CHANGELOG.md

        result in it OkHttp starting a thread for each queued task, even when a single thread could run
        all of them.
    
     *  Fix: Address a performance bug in `MultipartReader`. We were scanning the entire input stream
        for a delimiter when we only needed to scan enough to return a result.
    
     *  Fix: Don't double-compress the public suffix database. OkHttp is usually distributed in a
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 19:32:33 UTC 2025
    - 31.6K bytes
    - Viewed (1)
Back to top