decodeChunked

fun CoroutineScope.decodeChunked(input: ByteReadChannel): DecoderJob
fun CoroutineScope.decodeChunked(input: ByteReadChannel, contentLength: Long): DecoderJob

Start a chunked stream decoder coroutine


suspend fun decodeChunked(input: ByteReadChannel, out: ByteWriteChannel)

Decode chunked transfer encoding from the input channel and write the result in out.

Throws

if stream has ended unexpectedly.

if the format is invalid.


suspend fun decodeChunked(input: ByteReadChannel, out: ByteWriteChannel, contentLength: Long)

Chunked stream decoding loop