end

fun end()(source)
fun end(chunk: String = definedExternally, encoding: String = definedExternally, callback: () -> Unit = definedExternally)(source)
fun end(    chunk: <Error class: unknown class><out <Error class: unknown class>> = definedExternally,     encoding: String = definedExternally,     callback: () -> Unit = definedExternally)(source)

Sends the last chunk of the request data. Subsequent write or end operations will not be allowed. The finish event is emitted just after the end operation.