MultipartEvent

sealed class MultipartEvent

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

Types

Epilogue

class Epilogue : MultipartEvent

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

MultipartPart

class MultipartPart : 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.

Preamble

class Preamble : MultipartEvent

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

Functions

release

abstract fun release(): Unit

Release underlying data/packet.

Inheritors

Epilogue

class Epilogue : MultipartEvent

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

MultipartPart

class MultipartPart : 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.

Preamble

class Preamble : MultipartEvent

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