vertx / io.vertx.ext.web.client / HttpRequest / sendJson

sendJson

abstract fun sendJson(body: Any, handler: Handler<AsyncResult<HttpResponse<T>>>): Unit

Like #send(Handler) but with an HTTP request body object encoded as json and the content type set to application/json.

Parameters

body - the body