decodeChunked

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

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

Exceptions

EOFException - if stream has ended unexpectedly.

ParserException - if the format is invalid.

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

Deprecated: The contentLength is ignored for chunked transfer encoding

Chunked stream decoding loop