Scoop API

scoop:scoop.http.asyncio:0.1.0

MultipartSource

class MultipartSource

source · line 11
public
public class MultipartSource private constructor(
    private val reader: MultipartReader
) : AsyncCloseable

A sequential multipart reader over a borrowed source by default. Finish or explicitly discard the current part before requesting another.

function close

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

Closes parser/writer state and an endpoint whose ownership was transferred; borrowed endpoints retain their own cleanup responsibility.

function nextPart

source · line 63
public
public suspend fun nextPart(): MultipartPart?

Receives the next part head and body, or None after the final multipart boundary.