CIOMultipartDataBase

class CIOMultipartDataBase(val coroutineContext: CoroutineContext, channel: ByteReadChannel, contentType: CharSequence, contentLength: Long?, formFieldLimit: Int = 65536) : MultiPartData, CoroutineScope

Represents a multipart data object that does parse and convert parts to ktor's PartData

Constructors

Link copied to clipboard
constructor(coroutineContext: CoroutineContext, channel: ByteReadChannel, contentType: CharSequence, contentLength: Long?, formFieldLimit: Int = 65536)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun CoroutineScope.decodeChunked(input: ByteReadChannel): DecoderJob
fun CoroutineScope.decodeChunked(input: ByteReadChannel, contentLength: Long): DecoderJob

Start a chunked stream decoder coroutine

Link copied to clipboard
fun CoroutineScope.parseMultipart(input: ByteReadChannel, headers: <Error class: unknown class>): ReceiveChannel<MultipartEvent>
fun CoroutineScope.parseMultipart(input: ByteReadChannel, contentType: CharSequence, contentLength: Long?): ReceiveChannel<MultipartEvent>

Starts a multipart parser coroutine producing multipart events

Link copied to clipboard
open suspend override fun readPart(): PartData?