suspend fun HttpServerResponse.sendFileAwait(filename: String): Unit
Like io.vertx.core.http.HttpServerResponse but providing a handler which will be notified once the file has been completely written to the wire.
filename
- path to the file to serve
resultHandler
- handler that will be called on completion
Returna
reference to this, so the API can be used fluently *
suspend fun HttpServerResponse.sendFileAwait(filename: String, offset: Long): Unit
Like io.vertx.core.http.HttpServerResponse but providing a handler which will be notified once the file has been completely written to the wire.
filename
- path to the file to serve
offset
- the offset to serve from
resultHandler
- handler that will be called on completion
Returna
reference to this, so the API can be used fluently *
suspend fun HttpServerResponse.sendFileAwait(filename: String, offset: Long, length: Long): Unit
Like io.vertx.core.http.HttpServerResponse but providing a handler which will be notified once the file has been completely written to the wire.
filename
- path to the file to serve
offset
- the offset to serve from
length
- the length to serve to
resultHandler
- handler that will be called on completion
Returna
reference to this, so the API can be used fluently *