CIOMultipartDataBase
class CIOMultipartDataBase(val coroutineContext: CoroutineContext, channel: ByteReadChannel, contentType: CharSequence, contentLength: Long?, formFieldLimit: Long = 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: Long = 65536)
Functions
Link copied to clipboard
Start a chunked stream decoder coroutine
Link copied to clipboard
fun CoroutineScope.parseMultipart(input: ByteReadChannel, headers: HttpHeadersMap, maxPartSize: Long = Long.MAX_VALUE): ReceiveChannel<MultipartEvent>
fun CoroutineScope.parseMultipart(input: ByteReadChannel, contentType: CharSequence, contentLength: Long?, maxPartSize: Long = Long.MAX_VALUE): ReceiveChannel<MultipartEvent>
Starts a multipart parser coroutine producing multipart events