MultipartPart

class MultipartPart(val headers: Deferred<HttpHeadersMap>, 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.

Report a problem

Constructors

Link copied to clipboard
constructor(headers: Deferred<HttpHeadersMap>, body: ByteReadChannel)

Properties

Link copied to clipboard

a channel of part content

Link copied to clipboard
val headers: Deferred<HttpHeadersMap>

deferred that will be completed once will be parsed

Functions

Link copied to clipboard
open override fun release()

Release underlying data/packet.