streamBytes

abstract suspend fun streamBytes(options: StreamBytesOptions): ByteStreamSender

Start sending a stream of bytes. Call ByteStreamSender.close when finished sending.

Extension functions are available for sending bytes from sources such as InputStream or File.

See also

ByteStreamSender.write

Throws

if the stream failed to open.