readChunked

fun BufferedSource.readChunked(buffer: Buffer)

Read a source encoded in the "Transfer-Encoding: chunked" encoding. This format is a sequence of:

  • chunk-size (in hexadecimal) + CRLF

  • chunk-data + CRLF