decodeChunked

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

Start a chunked stream decoder coroutine

Report a problem


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

Report a problem

Throws

EOFException

if stream has ended unexpectedly.

if the format is invalid.


fun CoroutineScope.decodeChunked(input: ByteReadChannel): DecoderJob

Deprecated (with error)

Specify content length if known or pass -1L

Replace with

decodeChunked(input, -1L)

Start a chunked stream decoder coroutine

Report a problem