parseHttpBody
suspend fun parseHttpBody(
contentLength: Long,
transferEncoding: CharSequence?,
connectionOptions: ConnectionOptions?,
input: ByteReadChannel,
out: ByteWriteChannel
): Unit
Parse HTTP request or response body using contentLength, transferEncoding and connectionOptions writing it to out. Usually doesn’t fail but closing out channel with error.
Parameters
contentLength
- from the corresponding header or -1
transferEncoding
- header or null
Parameters
suspend fun parseHttpBody(
headers: HttpHeadersMap,
input: ByteReadChannel,
out: ByteWriteChannel
): Unit
Parse HTTP request or response body using request/response’s headers writing it to out. Usually doesn’t fail but closing out channel with error.