MultiPartData

interface MultiPartData

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

Inheritors

Types

Link copied to clipboard

An empty multipart data stream.

Functions

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.

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

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