vertx / io.vertx.kotlin.core.http / io.vertx.core.http.HttpServerResponse / sendFileAwait

# sendFileAwait

`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.

### Parameters

`filename` - path to the file to serve

Return
a 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.

### Parameters

`filename` - path to the file to serve

`offset` - the offset to serve from

Return
a 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.

### Parameters

`filename` - path to the file to serve

`offset` - the offset to serve from

`length` - the length to serve to

Return
a reference to this, so the API can be used fluently *