MultipartEvent

sealed class MultipartEvent

Represents a multipart content starting event. Every part need to be completely consumed or released via release

Inheritors

Types

Link copied to clipboard

Represents a multipart content epilogue. A multipart stream could have at most one epilogue.

Link copied to clipboard
class MultipartPart(val headers: Deferred<<Error class: unknown class>>, val body: ByteReadChannel) : MultipartEvent

Represents a multipart part. There could be any number of parts in a multipart stream. Please note that it is important to consume body otherwise multipart parser could get stuck (suspend) so you will not receive more events.

Link copied to clipboard

Represents a multipart content preamble. A multipart stream could have at most one preamble.

Functions

Link copied to clipboard
abstract fun release()

Release underlying data/packet.