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

pushHandler

open fun pushHandler(handler: Handler<HttpClientRequest>): HttpClientRequest

Set a push handler for this request. The handler is called when the client receives a push promise from the server. The handler can be called multiple times, for each push promise. The handler is called with a read-only io.vertx.reactivex.core.http.HttpClientRequest, the following methods can be called:

In addition the handler should call the io.vertx.reactivex.core.http.HttpClientRequest#handler method to set an handler to process the response.

Parameters

handler - the handler

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