onGotChunk

fun onGotChunk(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (<Error class: unknown class>) -> Unit): <Error class: unknown class>(source)

Emitted after receiving a chunk of a message body.

Note that "chunk" in this context means any subpiece of the body, not necessarily the specific HTTP 1.1 chunks sent by the other side.

Parameters

connectFlags

a combination of ConnectFlags

handler

the Callback to connect. Params: chunk the just-read chunk