MultipartReader

class MultipartReader(headers: Headers, val readChannel: ByteReadChannel)

Reader for HTTP multipart response body Theta sends. Note that Theta sends content type boundary doesn't conform to RFC 2046 chapter 5.1

Parameters

Constructors

Link copied to clipboard
constructor(headers: Headers, readChannel: ByteReadChannel)

Properties

Link copied to clipboard
Link copied to clipboard
val BUFFER_SIZE: Int = 128
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val readChannel: ByteReadChannel

Functions

Link copied to clipboard
suspend fun nextPart(): ByteReadPacket?

get next part if next part doesn't found, returns null