MultiPartData

interface MultiPartData

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

Types

Link copied to clipboard

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

Parse multipart data stream and put all parts into a list