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

continueHandler

open fun continueHandler(handler: Handler<Void>): HttpClientRequest

If you send an HTTP request with the header Expect set to the value 100-continue and the server responds with an interim HTTP response with a status code of 100 and a continue handler has been set using this method, then the handler will be called.

You can then continue to write data to the request body and later end it. This is normally used in conjunction with the io.vertx.reactivex.core.http.HttpClientRequest#sendHead method to force the request header to be written before the request has ended.

Parameters

handler -

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