Package | Description |
---|---|
io.vertx.core.http | |
io.vertx.reactivex.core.http | |
io.vertx.rxjava.core.http | |
io.vertx.rxjava3.core.http |
Modifier and Type | Method and Description |
---|---|
WebSocketConnectOptions |
WebSocketConnectOptions.addHeader(CharSequence key,
CharSequence value) |
WebSocketConnectOptions |
WebSocketConnectOptions.addHeader(CharSequence key,
Iterable<CharSequence> values) |
WebSocketConnectOptions |
WebSocketConnectOptions.addHeader(String key,
String value) |
WebSocketConnectOptions |
WebSocketConnectOptions.addSubProtocol(String subprotocol)
Add a WebSocket sub protocol to use.
|
WebSocketConnectOptions |
WebSocketConnectOptions.putHeader(CharSequence key,
CharSequence value) |
WebSocketConnectOptions |
WebSocketConnectOptions.putHeader(CharSequence key,
Iterable<CharSequence> values) |
WebSocketConnectOptions |
WebSocketConnectOptions.putHeader(String key,
String value) |
WebSocketConnectOptions |
WebSocketConnectOptions.setAllowOriginHeader(boolean allowOriginHeader)
Set whether to add the
origin header to the WebSocket handshake request, enabled by default. |
WebSocketConnectOptions |
WebSocketConnectOptions.setHeaders(MultiMap headers) |
WebSocketConnectOptions |
WebSocketConnectOptions.setHost(String host) |
WebSocketConnectOptions |
WebSocketConnectOptions.setPort(Integer port) |
WebSocketConnectOptions |
WebSocketConnectOptions.setRegisterWriteHandlers(boolean registerWriteHandlers)
Whether write-handlers should be registered on the
EventBus . |
WebSocketConnectOptions |
WebSocketConnectOptions.setSsl(Boolean ssl) |
WebSocketConnectOptions |
WebSocketConnectOptions.setSubProtocols(List<String> subProtocols)
Set the WebSocket sub protocols to use.
|
WebSocketConnectOptions |
WebSocketConnectOptions.setTimeout(long timeout)
Sets the amount of time after which if the WebSocket handshake does not happen within the timeout period an
WebSocketHandshakeException will be passed to the exception handler and the connection will be closed. |
WebSocketConnectOptions |
WebSocketConnectOptions.setURI(String uri) |
WebSocketConnectOptions |
WebSocketConnectOptions.setVersion(WebsocketVersion version)
Set the WebSocket version.
|
Modifier and Type | Method and Description |
---|---|
static void |
WebSocketConnectOptionsConverter.fromJson(Iterable<Map.Entry<String,Object>> json,
WebSocketConnectOptions obj) |
static void |
WebSocketConnectOptionsConverter.toJson(WebSocketConnectOptions obj,
JsonObject json) |
static void |
WebSocketConnectOptionsConverter.toJson(WebSocketConnectOptions obj,
Map<String,Object> json) |
Future<WebSocket> |
HttpClient.webSocket(WebSocketConnectOptions options)
Like
HttpClient.webSocket(WebSocketConnectOptions, Handler) but returns a Future of the asynchronous result |
void |
HttpClient.webSocket(WebSocketConnectOptions options,
Handler<AsyncResult<WebSocket>> handler)
Connect a WebSocket with the specified options.
|
Constructor and Description |
---|
WebSocketConnectOptions(WebSocketConnectOptions other) |
Modifier and Type | Method and Description |
---|---|
Single<WebSocket> |
HttpClient.rxWebSocket(WebSocketConnectOptions options)
Connect a WebSocket with the specified options.
|
void |
HttpClient.webSocket(WebSocketConnectOptions options)
Connect a WebSocket with the specified options.
|
void |
HttpClient.webSocket(WebSocketConnectOptions options,
Handler<AsyncResult<WebSocket>> handler)
Connect a WebSocket with the specified options.
|
Modifier and Type | Method and Description |
---|---|
Single<WebSocket> |
HttpClient.rxWebSocket(WebSocketConnectOptions options)
Connect a WebSocket with the specified options.
|
void |
HttpClient.webSocket(WebSocketConnectOptions options)
Connect a WebSocket with the specified options.
|
void |
HttpClient.webSocket(WebSocketConnectOptions options,
Handler<AsyncResult<WebSocket>> handler)
Connect a WebSocket with the specified options.
|
Modifier and Type | Method and Description |
---|---|
Single<WebSocket> |
HttpClient.rxWebSocket(WebSocketConnectOptions options)
Connect a WebSocket with the specified options.
|
Single<WebSocket> |
HttpClient.webSocket(WebSocketConnectOptions options)
Connect a WebSocket with the specified options.
|
Copyright © 2024 Eclipse. All rights reserved.