CIOMultipartDataBase

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

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

Constructors

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

Functions

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

Properties

Link copied to clipboard

Extensions

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: HttpHeadersMap): ReceiveChannel<MultipartEvent>
fun CoroutineScope.parseMultipart(input: ByteReadChannel, contentType: CharSequence, contentLength: Long?): ReceiveChannel<MultipartEvent>
fun CoroutineScope.parseMultipart(boundaryPrefixed: ByteBuffer, input: ByteReadChannel, totalLength: Long?): ReceiveChannel<MultipartEvent>

Starts a multipart parser coroutine producing multipart events