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:

- `io.vertx.reactivex.core.http.HttpClientRequest#method`
- `io.vertx.reactivex.core.http.HttpClientRequest#uri`
- `io.vertx.reactivex.core.http.HttpClientRequest#headers`
- `io.vertx.reactivex.core.http.HttpClientRequest#getHost`

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