open class HttpConnection
Represents an HTTP connection. HTTP/1.x connection provides an limited implementation, the following methods are implemented:
io.vertx.reactivex.core.http.HttpConnection#closeio.vertx.reactivex.core.http.HttpConnection#closeHandlerio.vertx.reactivex.core.http.HttpConnection#exceptionHandler
HttpConnection(delegate: HttpConnection) |
static val __TYPE_ARG: TypeArg<HttpConnection> |
open fun close(): Unit
Close the connection and all the currently active streams. An HTTP/2 connection will send a frame before. |
|
open fun closeHandler(handler: Handler<Void>): HttpConnection
Set a close handler. The handler will get notified when the connection is closed. |
|
open fun equals(other: Any?): Boolean |
|
open fun exceptionHandler(handler: Handler<Throwable>): HttpConnection
Set an handler called when a connection error happens |
|
open fun getDelegate(): HttpConnection |
|
open fun getWindowSize(): Int |
|
open fun goAway(errorCode: Long): HttpConnection
Like open fun goAway(errorCode: Long, lastStreamId: Int): HttpConnection
Like open fun goAway(errorCode: Long, lastStreamId: Int, debugData: Buffer): HttpConnection
Send a go away frame to the remote endpoint of the connection.
|
|
open fun goAwayHandler(handler: Handler<GoAway>): HttpConnection
Set an handler called when a frame is received. This is not implemented for HTTP/1.x. |
|
open fun hashCode(): Int |
|
open fun indicatedServerName(): String
Returns the SNI server name presented during the SSL handshake by the client. |
|
open fun isSsl(): Boolean |
|
open fun localAddress(): SocketAddress |
|
open static fun newInstance(arg: HttpConnection): HttpConnection |
|
open fun ping(data: Buffer, pongHandler: Handler<AsyncResult<Buffer>>): HttpConnection
Send a frame to the remote endpoint. This is not implemented for HTTP/1.x. |
|
open fun pingHandler(handler: Handler<Buffer>): HttpConnection
Set an handler notified when a frame is received from the remote endpoint. This is not implemented for HTTP/1.x. |
|
open fun remoteAddress(): SocketAddress |
|
open fun remoteSettings(): Http2Settings |
|
open fun remoteSettingsHandler(handler: Handler<Http2Settings>): HttpConnection
Set an handler that is called when remote endpoint io.vertx.core.http.Http2Settings are updated. This is not implemented for HTTP/1.x. |
|
open fun rxPing(data: Buffer): Single<Buffer>
Send a frame to the remote endpoint. This is not implemented for HTTP/1.x. |
|
open fun rxUpdateSettings(settings: Http2Settings): Completable
Send to the remote endpoint an update of this endpoint settings The |
|
open fun setWindowSize(windowSize: Int): HttpConnection
Update the current connection wide window size to a new size. Increasing this value, gives better performance when several data streams are multiplexed This is not implemented for HTTP/1.x. |
|
open fun settings(): Http2Settings |
|
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. 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 |
|
open fun shutdownHandler(handler: Handler<Void>): HttpConnection
Set an handler called when a frame has been sent or received and all connections are closed. This is not implemented for HTTP/1.x. |
|
open fun toString(): String |
|
open fun updateSettings(settings: Http2Settings): HttpConnection
Send to the remote endpoint an update of the server settings. This is not implemented for HTTP/1.x. open fun updateSettings(settings: Http2Settings, completionHandler: Handler<AsyncResult<Void>>): HttpConnection
Send to the remote endpoint an update of this endpoint settings The |