Scoop API

scoop:scoop.http.asyncio:0.1.0

MultipartPartWriter

class MultipartPartWriter

source · line 10
public
public class MultipartPartWriter internal constructor(private val writer: MultipartWriter,
    /**
     * The header selected when this part began.
     */
    public val head: MultipartPartHead) : AsyncByteSink, AsyncCloseable

The active multipart output part. Finish writes its boundary; flush does not end the part.

function close

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

Closes the part writer; incomplete output is not silently marked complete.

function finish

source · line 37
public
public suspend fun finish(): Unit

Completes this part so the next part or final multipart boundary can be written.

function flush

source · line 33
public
public override suspend fun flush(): Unit

Flushes part output without writing the end boundary.