vertx / io.vertx.rxjava.core.http / HttpConnection / shutdown

shutdown

open fun shutdown(): HttpConnection

Initiate a connection shutdown, a go away frame is sent and the connection is closed when all current active streams are closed or after a time out of 30 seconds. This is not implemented for HTTP/1.x.

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

open fun shutdown(timeoutMs: Long): HttpConnection

Initiate a connection shutdown, a go away frame is sent and the connection is closed when all current streams will be closed or the timeout is fired. This is not implemented for HTTP/1.x.

Parameters

timeoutMs - the timeout in milliseconds

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