vertx / io.vertx.kotlin.core.http / io.vertx.core.http.HttpServerResponse / pushAwait

# pushAwait

`suspend fun HttpServerResponse.pushAwait(method: HttpMethod, host: String, path: String): HttpServerResponse`

Like io.vertx.core.http.HttpServerResponse with no headers.

### Parameters

`method` -

`host` -

`path` -

Return

`suspend fun HttpServerResponse.pushAwait(method: HttpMethod, path: String, headers: MultiMap): HttpServerResponse`

Like io.vertx.core.http.HttpServerResponse with the host copied from the current request.

### Parameters

`method` -

`path` -

`headers` -

Return

`suspend fun HttpServerResponse.pushAwait(method: HttpMethod, path: String): HttpServerResponse`

Like io.vertx.core.http.HttpServerResponse with the host copied from the current request.

### Parameters

`method` -

`path` -

Return

`suspend fun HttpServerResponse.pushAwait(method: HttpMethod, host: String, path: String, headers: MultiMap): HttpServerResponse`

Push a response to the client.

The handler will be notified with a success when the push can be sent and with a failure when the client has disabled push or reset the push before it has been sent.

The handler may be queued if the client has reduced the maximum number of streams the server can push concurrently.

Push can be sent only for peer initiated streams and if the response is not ended.

### Parameters

`method` - the method of the promised request

`host` - the host of the promised request

`path` - the path of the promised request

`headers` - the headers of the promised request

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