Scoop API

scoop:scoop.http.asyncio:0.1.0

MultipartSink

class MultipartSink

source · line 11
public
public class MultipartSink private constructor(private val writer: MultipartWriter) : AsyncCloseable

A sequential multipart writer over a borrowed sink by default. Finish each part and then the whole multipart message explicitly.

function flush

source · line 48
public
public suspend fun flush(): Unit

Drains pending multipart output without completing a part or the message.

function close

source · line 57
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 finish

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

Writes the final multipart boundary and drains output.