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

Extensions for io.vertx.core.http.HttpServerResponse

endAwait

suspend fun HttpServerResponse.endAwait(): Unit
suspend fun HttpServerResponse.endAwait(chunk: String): Unit
suspend fun HttpServerResponse.endAwait(chunk: String, enc: String): Unit
suspend fun HttpServerResponse.endAwait(chunk: Buffer): Unit

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

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

writeAwait

suspend fun HttpServerResponse.writeAwait(data: Buffer): Unit
suspend fun HttpServerResponse.writeAwait(chunk: String, enc: String): Unit
suspend fun HttpServerResponse.writeAwait(chunk: String): Unit

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