Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for multipartReader (1.44 sec)

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

     *
     * Typical use loops over the parts in sequence:
     *
     * ```kotlin
     * val response: Response = call.execute()
     * val multipartReader = MultipartReader(response.body!!)
     *
     * multipartReader.use {
     *   while (true) {
     *     val part = multipartReader.nextPart() ?: break
     *     process(part.headers, part.body)
     *   }
     * }
     * ```
     *
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 02:11:14 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. cmd/bucket-handlers.go

    		RespElements: extractRespElements(w),
    		UserAgent:    r.UserAgent(),
    		Host:         handlers.GetSourceIP(r),
    	})
    }
    
    // multipartReader is just like https://pkg.go.dev/net/http#Request.MultipartReader but
    // rejects multipart/mixed as its not supported in S3 API.
    func multipartReader(r *http.Request) (*multipart.Reader, error) {
    	v := r.Header.Get("Content-Type")
    	if v == "" {
    		return nil, http.ErrNotMultipart
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 63.9K bytes
    - Viewed (0)
  5. okhttp/api/jvm/okhttp.api

    }
    
    public final class okhttp3/MultipartReader : java/io/Closeable {
    	public fun <init> (Lokhttp3/ResponseBody;)V
    	public fun <init> (Lokio/BufferedSource;Ljava/lang/String;)V
    	public final fun boundary ()Ljava/lang/String;
    	public fun close ()V
    	public final fun nextPart ()Lokhttp3/MultipartReader$Part;
    }
    
    public final class okhttp3/MultipartReader$Part : java/io/Closeable {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 69.4K bytes
    - Viewed (0)
  6. okhttp/api/android/okhttp.api

    }
    
    public final class okhttp3/MultipartReader : java/io/Closeable {
    	public fun <init> (Lokhttp3/ResponseBody;)V
    	public fun <init> (Lokio/BufferedSource;Ljava/lang/String;)V
    	public final fun boundary ()Ljava/lang/String;
    	public fun close ()V
    	public final fun nextPart ()Lokhttp3/MultipartReader$Part;
    }
    
    public final class okhttp3/MultipartReader$Part : java/io/Closeable {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 69.4K bytes
    - Viewed (0)
  7. 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