Scoop API

scoop:scoop.http.asyncio:0.1.0

MultipartBody

class MultipartBody

source · line 9
public
public class MultipartBody internal constructor(private val reader: MultipartReader) : AsyncByteSource, AsyncCloseable

The current multipart part body, ending at its boundary rather than at transport EOF.

function close

source · line 35
public
public override suspend fun close(): Unit

Closes this body; unfinished-body cleanup follows the multipart reader's abort behavior rather than an unbounded drain.

function discard

source · line 30
public
public suspend fun discard(maxBytes: Long): Long

Consumes and discards remaining part bytes up to an explicit limit, returning the discarded count.