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

Report a problem

Constructors

Link copied to clipboard
constructor(    coroutineContext: CoroutineContext,     channel: ByteReadChannel,     contentType: CharSequence,     contentLength: Long?,     formFieldLimit: Long = 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: 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

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