flush

fun flush()

Flushes the underlying output stream, forcing any buffered bytes to be written out.

Throws

if a network error occurs during flush.