- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for NextPart (0.07 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/MultipartReaderTest.kt
boundary = "simple boundary", source = Buffer().writeUtf8(multipart), ) parts.nextPart()!! val partMno = parts.nextPart()!! assertThat(partMno.body.readUtf8()).isEqualTo("mnop") assertThat(parts.nextPart()).isNull() } @Test fun `cannot read part after calling nextPart`() { val multipart = """ |--simple boundary | |abcd |efgh
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed May 28 02:11:14 UTC 2025 - 15.4K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/MultipartReader.kt
* until [nextPart] returns null. After calling [nextPart] any preceding parts should not be read. * * 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) -
okhttp/api/jvm/okhttp.api
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 { public fun <init> (Lokhttp3/Headers;Lokio/BufferedSource;)V public final fun body ()Lokio/BufferedSource;
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 16 09:39:51 UTC 2025 - 69.4K bytes - Viewed (0) -
cmd/bucket-handlers.go
maxMemoryBytes := 2 * int64(10<<20) maxMemoryBytes -= int64(len(name)) maxMemoryBytes -= mapEntryOverhead if maxMemoryBytes < 0 { // We can't actually take this path, since nextPart would already have // rejected the MIME headers for being too large. Check anyway. apiErr := errorCodes.ToAPIErr(ErrMalformedPOSTRequest)
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 63.9K bytes - Viewed (0) -
okhttp/api/android/okhttp.api
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 { public fun <init> (Lokhttp3/Headers;Lokio/BufferedSource;)V public final fun body ()Lokio/BufferedSource;
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 16 09:39:51 UTC 2025 - 69.4K bytes - Viewed (0)