parse Http Body
suspend fun parseHttpBody(version: HttpProtocolVersion?, contentLength: Long, transferEncoding: CharSequence?, connectionOptions: ConnectionOptions?, input: ByteReadChannel, out: ByteWriteChannel)(source)
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
content Length
from the corresponding header or -1
transfer Encoding
header or null
suspend fun parseHttpBody(headers: HttpHeadersMap, input: ByteReadChannel, out: ByteWriteChannel)(source)
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.
suspend fun parseHttpBody(contentLength: Long, transferEncoding: CharSequence?, connectionOptions: ConnectionOptions?, input: ByteReadChannel, out: ByteWriteChannel)(source)
Deprecated (with error)
Please use method with version parameter
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
content Length
from the corresponding header or -1
transfer Encoding
header or null