MultiPartData

interface MultiPartData

Represents a multipart data stream that could be received from a call

Types

Link copied to clipboard
object Empty : MultiPartData

An empty multipart data stream

Functions

Link copied to clipboard
abstract suspend fun readPart(): PartData?

Reads next part data or null if end of multipart stream encountered

Inheritors

Link copied to clipboard

Extensions

Link copied to clipboard
suspend fun MultiPartData.forEachPart(partHandler: suspend (PartData) -> Unit)

Parse multipart data stream and invoke partHandler for each PartData encountered

Link copied to clipboard
suspend fun MultiPartData.readAllParts(): List<PartData>

Parse multipart data stream and put all parts into a list