class MultipartPartWriter
source · line 10public
public class MultipartPartWriter internal constructor(private val writer: MultipartWriter,
/**
* The header selected when this part began.
*/
public val head: MultipartPartHead) : AsyncByteSink, AsyncCloseable
- Supertype
AsyncByteSink - Supertype
AsyncCloseable
The active multipart output part. Finish writes its boundary; flush does not end the part.
function close
source · line 41public
public override suspend fun close(): Unit
- Overrides
close
Closes the part writer; incomplete output is not silently marked complete.
property head
source · line 14public
public val head: MultipartPartHead
get: public read-only
The header selected when this part began.
function finish
source · line 37public
public suspend fun finish(): Unit
Completes this part so the next part or final multipart boundary can be written.
property isClosed
source · line 25public
public val isClosed: Boolean
get: public read-only
Whether this body or message has been closed.
getter get
source · line 25public
get(): Boolean
function writeFrom
source · line 29public
public override suspend fun writeFrom(buffer: NativeByteBuffer, count: Long): Long
- Overrides
writeFrom
Writes body bytes into the active part.
parameter count
source · line 29public
count: Long
parameter buffer
source · line 29public
buffer: NativeByteBuffer
property isComplete
source · line 21public
public val isComplete: Boolean
get: public read-only
Whether this body or message reached its successful boundary.
getter get
source · line 21public
get(): Boolean
function flush
source · line 33public
public override suspend fun flush(): Unit
- Overrides
flush
Flushes part output without writing the end boundary.