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

Extensions for io.vertx.core.http.HttpServerResponse

pushAwait

suspend fun HttpServerResponse.pushAwait(method: HttpMethod, host: String, path: String): HttpServerResponse
suspend fun HttpServerResponse.pushAwait(method: HttpMethod, path: String, headers: MultiMap): HttpServerResponse
suspend fun HttpServerResponse.pushAwait(method: HttpMethod, path: String): HttpServerResponse
suspend fun HttpServerResponse.pushAwait(method: HttpMethod, host: String, path: String, headers: MultiMap): HttpServerResponse

Suspending version of method io.vertx.core.http.HttpServerResponse.push

sendFileAwait

suspend fun HttpServerResponse.sendFileAwait(filename: String): Unit
suspend fun HttpServerResponse.sendFileAwait(filename: String, offset: Long): Unit
suspend fun HttpServerResponse.sendFileAwait(filename: String, offset: Long, length: Long): Unit

Suspending version of method io.vertx.core.http.HttpServerResponse.sendFile