Package | Description |
---|---|
io.vertx.reactivex.core.http |
Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<HttpConnection> |
HttpConnection.__TYPE_ARG |
Modifier and Type | Method and Description |
---|---|
HttpConnection |
HttpConnection.closeHandler(Handler<Void> handler)
Set a close handler.
|
HttpConnection |
HttpClientRequest.connection() |
HttpConnection |
HttpServerRequest.connection() |
HttpConnection |
HttpConnection.exceptionHandler(Handler<Throwable> handler)
Set an handler called when a connection error happens
|
HttpConnection |
HttpConnection.goAway(long errorCode)
Like
goAway(long) with a last stream id -1 which means to disallow any new stream creation. |
HttpConnection |
HttpConnection.goAway(long errorCode,
int lastStreamId)
Like
goAway(long) with no buffer. |
HttpConnection |
HttpConnection.goAway(long errorCode,
int lastStreamId,
Buffer debugData)
Send a go away frame to the remote endpoint of the connection.
|
HttpConnection |
HttpConnection.goAwayHandler(Handler<GoAway> handler)
Set an handler called when a frame is received.
|
static HttpConnection |
HttpConnection.newInstance(HttpConnection arg) |
HttpConnection |
HttpConnection.ping(Buffer data,
Handler<AsyncResult<Buffer>> pongHandler)
Send a frame to the remote endpoint.
|
HttpConnection |
HttpConnection.pingHandler(Handler<Buffer> handler)
Set an handler notified when a frame is received from the remote endpoint.
|
HttpConnection |
HttpConnection.remoteSettingsHandler(Handler<Http2Settings> handler)
Set an handler that is called when remote endpoint
Http2Settings are updated. |
HttpConnection |
HttpConnection.setWindowSize(int windowSize)
Update the current connection wide window size to a new size.
|
HttpConnection |
HttpConnection.shutdown()
Initiate a graceful connection shutdown, the connection is taken out of service and closed when all current requests
are processed, otherwise after 30 seconds the connection will be closed.
|
HttpConnection |
HttpConnection.shutdown(long timeoutMs)
Like
shutdown() but with a configurable timeout value. |
HttpConnection |
HttpConnection.shutdownHandler(Handler<Void> handler)
Set an handler called when a frame has been sent or received and all connections are closed.
|
HttpConnection |
HttpConnection.updateSettings(Http2Settings settings)
Send to the remote endpoint an update of the server settings.
|
HttpConnection |
HttpConnection.updateSettings(Http2Settings settings,
Handler<AsyncResult<Void>> completionHandler)
Send to the remote endpoint an update of this endpoint settings
The
completionHandler will be notified when the remote endpoint has acknowledged the settings. |
Modifier and Type | Method and Description |
---|---|
HttpServer |
HttpServer.connectionHandler(Handler<HttpConnection> handler)
Set a connection handler for the server.
|
HttpClientRequest |
HttpClientRequest.connectionHandler(Handler<HttpConnection> handler)
Deprecated.
|
HttpClient |
HttpClient.connectionHandler(Handler<HttpConnection> handler)
Set a connection handler for the client.
|
Copyright © 2023 Eclipse. All rights reserved.