MultipartEvent

sealed class MultipartEvent

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

Types

Link copied to clipboard
class Epilogue(body: ByteReadPacket) : MultipartEvent

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

Link copied to clipboard
class MultipartPart(headers: Deferred<HttpHeadersMap>, 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
class Preamble(body: ByteReadPacket) : MultipartEvent

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.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard