vertx / io.vertx.reactivex.core.http / HttpClientRequest / sendHead

sendHead

open fun sendHead(): HttpClientRequest

Forces the head of the request to be written before io.vertx.reactivex.core.http.HttpClientRequest#end is called on the request or any data is written to it.

This is normally used to implement HTTP 100-continue handling, see for more information.

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

open fun sendHead(completionHandler: Handler<HttpVersion>): HttpClientRequest

Like io.vertx.reactivex.core.http.HttpClientRequest#sendHead but with an handler after headers have been sent. The handler will be called with the io.vertx.reactivex.core.http.HttpVersion if it can be determined or null otherwise.

Parameters

completionHandler -

Return