vertx / io.vertx.kotlin.ext.web.client / io.vertx.ext.web.client.HttpRequest / sendJsonAwait

sendJsonAwait

suspend fun <T> HttpRequest<T>.sendJsonAwait(body: Any): HttpResponse<T>

Like io.vertx.ext.web.client.HttpRequest but with an HTTP request body object encoded as json and the content type set to application/json.

Parameters

body - the body

handler -