MultipartEvent
sealed class MultipartEvent
Represents a multipart content starting event. Every part need to be completely consumed or released via release
Types
class Epilogue : MultipartEvent Represents a multipart content epilogue. A multipart stream could have at most one epilogue. |
|
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. |
|
class Preamble : MultipartEvent Represents a multipart content preamble. A multipart stream could have at most one preamble. |
Functions
abstract fun release(): Unit Release underlying data/packet. |
Inheritors
class Epilogue : MultipartEvent Represents a multipart content epilogue. A multipart stream could have at most one epilogue. |
|
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. |
|
class Preamble : MultipartEvent Represents a multipart content preamble. A multipart stream could have at most one preamble. |