Package | Description |
---|---|
io.vertx.core | |
io.vertx.core.eventbus | |
io.vertx.core.http | |
io.vertx.core.spi.observability |
Modifier and Type | Method and Description |
---|---|
MultiMap |
MultiMap.add(CharSequence name,
CharSequence value)
Like
add(String, String) but accepting CharSequence as parameters |
MultiMap |
MultiMap.add(CharSequence name,
Iterable<CharSequence> values)
Like
add(String, Iterable) but accepting CharSequence as parameters |
MultiMap |
MultiMap.add(String name,
Iterable<String> values)
Adds a new values under the specified name
|
MultiMap |
MultiMap.add(String name,
String value)
Adds a new value with the specified name and value.
|
MultiMap |
MultiMap.addAll(Map<String,String> headers)
Adds all the entries from a Map to this
|
MultiMap |
MultiMap.addAll(MultiMap map)
Adds all the entries from another MultiMap to this one
|
static MultiMap |
MultiMap.caseInsensitiveMultiMap()
Create a multi-map implementation with case insensitive keys, for instance it can be used to hold some HTTP headers.
|
MultiMap |
MultiMap.clear()
Removes all
|
MultiMap |
MultiMap.remove(CharSequence name)
Like
remove(String) but accepting CharSequence as parameters |
MultiMap |
MultiMap.remove(String name)
Removes the value with the given name
|
MultiMap |
MultiMap.set(CharSequence name,
CharSequence value)
Like
set(String, String) but accepting CharSequence as parameters |
MultiMap |
MultiMap.set(CharSequence name,
Iterable<CharSequence> values)
Like
set(String, Iterable) but accepting CharSequence as parameters |
MultiMap |
MultiMap.set(String name,
Iterable<String> values)
Sets values for the specified name.
|
MultiMap |
MultiMap.set(String name,
String value)
Sets a
value under the specified name . |
MultiMap |
MultiMap.setAll(Map<String,String> headers)
Cleans and set all values of the given instance
|
MultiMap |
MultiMap.setAll(MultiMap map)
Cleans this instance.
|
Modifier and Type | Method and Description |
---|---|
MultiMap |
MultiMap.addAll(MultiMap map)
Adds all the entries from another MultiMap to this one
|
MultiMap |
MultiMap.setAll(MultiMap map)
Cleans this instance.
|
Modifier and Type | Method and Description |
---|---|
MultiMap |
DeliveryOptions.getHeaders()
Get the message headers
|
MultiMap |
Message.headers()
Multi-map of message headers.
|
Modifier and Type | Method and Description |
---|---|
DeliveryOptions |
DeliveryOptions.setHeaders(MultiMap headers)
Set message headers from a multi-map.
|
Modifier and Type | Method and Description |
---|---|
MultiMap |
HttpServerRequest.formAttributes()
Returns a map of all form attributes in the request.
|
MultiMap |
RequestOptions.getHeaders()
Get the request headers
|
MultiMap |
HttpClientResponse.headers() |
MultiMap |
HttpServerResponse.headers() |
static MultiMap |
HttpHeaders.headers() |
MultiMap |
HttpClientRequest.headers() |
MultiMap |
HttpServerRequest.headers() |
MultiMap |
WebSocketBase.headers()
Returns the HTTP headers when the WebSocket is first obtained in the handler.
|
MultiMap |
HttpServerRequest.params() |
static MultiMap |
HttpHeaders.set(CharSequence name,
CharSequence value) |
static MultiMap |
HttpHeaders.set(String name,
String value) |
MultiMap |
HttpClientResponse.trailers() |
MultiMap |
HttpServerResponse.trailers() |
Modifier and Type | Method and Description |
---|---|
Future<HttpClientResponse> |
HttpClient.delete(int port,
String host,
String requestURI,
MultiMap headers)
Like
HttpClient.delete(int, String, String, MultiMap, Handler) but returns a Future of the asynchronous result |
void |
HttpClient.delete(int port,
String host,
String requestURI,
MultiMap headers,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Sends an HTTP DELETE request to send to the server at the specified host and port, specifying a response handler to receive
the response
|
Future<HttpClientResponse> |
HttpClient.delete(String requestURI,
MultiMap headers)
Like
HttpClient.delete(String, MultiMap, Handler) but returns a Future of the asynchronous result |
void |
HttpClient.delete(String requestURI,
MultiMap headers,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Sends an HTTP DELETE request to send to the server at the default host and port, specifying a response handler to receive
the response
|
Future<HttpClientResponse> |
HttpClient.delete(String host,
String requestURI,
MultiMap headers)
Like
HttpClient.delete(String, String, MultiMap, Handler) but returns a Future of the asynchronous result |
void |
HttpClient.delete(String host,
String requestURI,
MultiMap headers,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Sends an HTTP DELETE request to send to the server at the specified host and default port, specifying a response handler to receive
the response
|
Future<HttpClientResponse> |
HttpClient.get(int port,
String host,
String requestURI,
MultiMap headers)
Like
HttpClient.get(int, String, String, MultiMap, Handler) but returns a Future of the asynchronous result |
void |
HttpClient.get(int port,
String host,
String requestURI,
MultiMap headers,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Sends an HTTP GET request to the server at the specified host and port, specifying a response handler to receive
the response
|
Future<HttpClientResponse> |
HttpClient.get(String requestURI,
MultiMap headers)
Like
HttpClient.get(String, MultiMap, Handler) but returns a Future of the asynchronous result |
void |
HttpClient.get(String requestURI,
MultiMap headers,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Sends an HTTP GET request to the server at the default host and port, specifying a response handler to receive
the response
|
Future<HttpClientResponse> |
HttpClient.get(String host,
String requestURI,
MultiMap headers)
Like
HttpClient.get(String, String, MultiMap, Handler) but returns a Future of the asynchronous result |
void |
HttpClient.get(String host,
String requestURI,
MultiMap headers,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Sends an HTTP GET request to the server at the specified host and default port, specifying a response handler to receive
the response
|
Future<HttpClientResponse> |
HttpClient.head(int port,
String host,
String requestURI,
MultiMap headers)
Like
HttpClient.head(int, String, String, MultiMap, Handler) but returns a Future of the asynchronous result |
void |
HttpClient.head(int port,
String host,
String requestURI,
MultiMap headers,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Sends an HTTP HEAD request to the server at the specified host and port, specifying a response handler to receive
the response
|
Future<HttpClientResponse> |
HttpClient.head(String requestURI,
MultiMap headers)
Like
HttpClient.head(String, MultiMap, Handler) but returns a Future of the asynchronous result |
void |
HttpClient.head(String requestURI,
MultiMap headers,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Sends an HTTP HEAD request to the server at the default host and port, specifying a response handler to receive
the response
|
Future<HttpClientResponse> |
HttpClient.head(String host,
String requestURI,
MultiMap headers)
Like
HttpClient.head(String, String, MultiMap, Handler) but returns a Future of the asynchronous result |
void |
HttpClient.head(String host,
String requestURI,
MultiMap headers,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Sends an HTTP HEAD request to the server at the specified host and default port, specifying a response handler to receive
the response
|
Future<HttpClientResponse> |
HttpClient.options(int port,
String host,
String requestURI,
MultiMap headers)
Like
HttpClient.options(int, String, String, MultiMap, Handler) but returns a Future of the asynchronous result |
void |
HttpClient.options(int port,
String host,
String requestURI,
MultiMap headers,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Sends an HTTP OPTIONS request to send to the server at the specified host and port, specifying a response handler to receive
the response
|
Future<HttpClientResponse> |
HttpClient.options(String requestURI,
MultiMap headers)
Like
HttpClient.options(String, MultiMap, Handler) but returns a Future of the asynchronous result |
void |
HttpClient.options(String requestURI,
MultiMap headers,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Sends an HTTP OPTIONS request to send to the server at the default host and port, specifying a response handler to receive
the response
|
Future<HttpClientResponse> |
HttpClient.options(String host,
String requestURI,
MultiMap headers)
Like
HttpClient.options(String, String, MultiMap, Handler) but returns a Future of the asynchronous result |
void |
HttpClient.options(String host,
String requestURI,
MultiMap headers,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Sends an HTTP OPTIONS request to send to the server at the specified host and default port, specifying a response handler to receive
the response
|
Future<HttpClientResponse> |
HttpClient.post(int port,
String host,
String requestURI,
MultiMap headers,
Buffer body)
Like
HttpClient.post(int, String, String, MultiMap, Buffer, Handler) but returns a Future of the asynchronous result |
void |
HttpClient.post(int port,
String host,
String requestURI,
MultiMap headers,
Buffer body,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Sends an HTTP POST request to send to the server at the specified host and port, specifying a response handler to receive
the response
|
Future<HttpClientResponse> |
HttpClient.post(int port,
String host,
String requestURI,
MultiMap headers,
ReadStream<Buffer> body)
Like
HttpClient.post(int, String, String, MultiMap, ReadStream, Handler) but returns a Future of the asynchronous result |
void |
HttpClient.post(int port,
String host,
String requestURI,
MultiMap headers,
ReadStream<Buffer> body,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Sends an HTTP POST request to send to the server at the specified host and port, specifying a response handler to receive
the response
|
Future<HttpClientResponse> |
HttpClient.post(String requestURI,
MultiMap headers,
Buffer body)
Like
HttpClient.post(String, MultiMap, Buffer, Handler) but returns a Future of the asynchronous result |
void |
HttpClient.post(String requestURI,
MultiMap headers,
Buffer body,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Sends an HTTP POST request to send to the server at the default host and port, specifying a response handler to receive
the response
|
Future<HttpClientResponse> |
HttpClient.post(String requestURI,
MultiMap headers,
ReadStream<Buffer> body)
Like
HttpClient.post(String, MultiMap, ReadStream, Handler) but returns a Future of the asynchronous result |
void |
HttpClient.post(String requestURI,
MultiMap headers,
ReadStream<Buffer> body,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Sends an HTTP POST request to send to the server at the default host and port, specifying a response handler to receive
the response
|
Future<HttpClientResponse> |
HttpClient.post(String host,
String requestURI,
MultiMap headers,
Buffer body)
Like
HttpClient.post(String, String, MultiMap, Buffer, Handler) but returns a Future of the asynchronous result |
void |
HttpClient.post(String host,
String requestURI,
MultiMap headers,
Buffer body,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Sends an HTTP POST request to send to the server at the specified host and default port, specifying a response handler to receive
the response
|
Future<HttpClientResponse> |
HttpClient.post(String host,
String requestURI,
MultiMap headers,
ReadStream<Buffer> body)
Like
HttpClient.post(String, String, MultiMap, ReadStream, Handler) but returns a Future of the asynchronous result |
void |
HttpClient.post(String host,
String requestURI,
MultiMap headers,
ReadStream<Buffer> body,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Sends an HTTP POST request to send to the server at the specified host and default port, specifying a response handler to receive
the response
|
default Future<HttpServerResponse> |
HttpServerResponse.push(HttpMethod method,
String path,
MultiMap headers)
Same as
HttpServerResponse.push(HttpMethod, String, MultiMap, Handler) but with an handler called when the operation completes |
default HttpServerResponse |
HttpServerResponse.push(HttpMethod method,
String path,
MultiMap headers,
Handler<AsyncResult<HttpServerResponse>> handler)
Like
HttpServerResponse.push(HttpMethod, String, String, MultiMap, Handler) with the host copied from the current request. |
Future<HttpServerResponse> |
HttpServerResponse.push(HttpMethod method,
String host,
String path,
MultiMap headers)
Same as
HttpServerResponse.push(HttpMethod, String, String, MultiMap, Handler) but with an handler called when the operation completes |
default HttpServerResponse |
HttpServerResponse.push(HttpMethod method,
String host,
String path,
MultiMap headers,
Handler<AsyncResult<HttpServerResponse>> handler)
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. |
Future<HttpClientResponse> |
HttpClient.put(int port,
String host,
String requestURI,
MultiMap headers,
Buffer body)
Like
HttpClient.put(int, String, String, MultiMap, Buffer, Handler) but returns a Future of the asynchronous result |
void |
HttpClient.put(int port,
String host,
String requestURI,
MultiMap headers,
Buffer body,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Sends an HTTP PUT request to send to the server at the specified host and port, specifying a response handler to receive
the response
|
Future<HttpClientResponse> |
HttpClient.put(int port,
String host,
String requestURI,
MultiMap headers,
ReadStream<Buffer> body)
Like
HttpClient.put(int, String, String, MultiMap, ReadStream, Handler) but returns a Future of the asynchronous result |
void |
HttpClient.put(int port,
String host,
String requestURI,
MultiMap headers,
ReadStream<Buffer> body,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Sends an HTTP PUT request to send to the server at the specified host and port, specifying a response handler to receive
the response
|
Future<HttpClientResponse> |
HttpClient.put(String requestURI,
MultiMap headers,
Buffer body)
Like
HttpClient.put(String, MultiMap, Buffer, Handler) but returns a Future of the asynchronous result |
void |
HttpClient.put(String requestURI,
MultiMap headers,
Buffer body,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Sends an HTTP PUT request to send to the server at the default host and port, specifying a response handler to receive
the response
|
Future<HttpClientResponse> |
HttpClient.put(String requestURI,
MultiMap headers,
ReadStream<Buffer> body)
Like
HttpClient.put(String, MultiMap, ReadStream, Handler) but returns a Future of the asynchronous result |
void |
HttpClient.put(String requestURI,
MultiMap headers,
ReadStream<Buffer> body,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Sends an HTTP PUT request to send to the server at the default host and port, specifying a response handler to receive
the response
|
Future<HttpClientResponse> |
HttpClient.put(String host,
String requestURI,
MultiMap headers,
Buffer body)
Like
HttpClient.put(String, String, MultiMap, Buffer, Handler) but returns a Future of the asynchronous result |
void |
HttpClient.put(String host,
String requestURI,
MultiMap headers,
Buffer body,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Sends an HTTP PUT request to send to the server at the specified host and default port, specifying a response handler to receive
the response
|
Future<HttpClientResponse> |
HttpClient.put(String host,
String requestURI,
MultiMap headers,
ReadStream<Buffer> body)
Like
HttpClient.put(String, String, MultiMap, ReadStream, Handler) but returns a Future of the asynchronous result |
void |
HttpClient.put(String host,
String requestURI,
MultiMap headers,
ReadStream<Buffer> body,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Sends an HTTP PUT request to send to the server at the specified host and default port, specifying a response handler to receive
the response
|
Future<HttpClientResponse> |
HttpClient.send(HttpMethod method,
int port,
String host,
String requestURI,
MultiMap headers)
Like
HttpClient.send(HttpMethod, int, String, String, MultiMap, Handler) but returns a Future of the asynchronous result |
Future<HttpClientResponse> |
HttpClient.send(HttpMethod method,
int port,
String host,
String requestURI,
MultiMap headers,
Buffer body)
Like
HttpClient.send(HttpMethod, int, String, String, MultiMap, Buffer, Handler) but returns a Future of the asynchronous result |
void |
HttpClient.send(HttpMethod method,
int port,
String host,
String requestURI,
MultiMap headers,
Buffer body,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Sends an HTTP request to send to the server at the specified host and port, specifying a response handler to receive
the response
|
void |
HttpClient.send(HttpMethod method,
int port,
String host,
String requestURI,
MultiMap headers,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Sends an HTTP request to send to the server at the specified host and port, specifying a response handler to receive
the response
|
Future<HttpClientResponse> |
HttpClient.send(HttpMethod method,
int port,
String host,
String requestURI,
MultiMap headers,
ReadStream<Buffer> body)
Like
HttpClient.send(HttpMethod, int, String, String, MultiMap, ReadStream, Handler) but returns a Future of the asynchronous result |
void |
HttpClient.send(HttpMethod method,
int port,
String host,
String requestURI,
MultiMap headers,
ReadStream<Buffer> body,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Sends an HTTP request to send to the server at the specified host and port, specifying a response handler to receive
the response
|
Future<HttpClientResponse> |
HttpClient.send(HttpMethod method,
String requestURI,
MultiMap headers)
Like
HttpClient.send(HttpMethod, String, MultiMap, Handler) but returns a Future of the asynchronous result |
Future<HttpClientResponse> |
HttpClient.send(HttpMethod method,
String requestURI,
MultiMap headers,
Buffer body)
Like
HttpClient.send(HttpMethod, String, MultiMap, Buffer, Handler) but returns a Future of the asynchronous result |
void |
HttpClient.send(HttpMethod method,
String requestURI,
MultiMap headers,
Buffer body,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Sends an HTTP request to send to the server at the default host and port, specifying a response handler to receive
the response
|
void |
HttpClient.send(HttpMethod method,
String requestURI,
MultiMap headers,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Sends an HTTP request to send to the server at the default host and port, specifying a response handler to receive
the response
|
Future<HttpClientResponse> |
HttpClient.send(HttpMethod method,
String requestURI,
MultiMap headers,
ReadStream<Buffer> body)
Like
HttpClient.send(HttpMethod, String, MultiMap, ReadStream, Handler) but returns a Future of the asynchronous result |
void |
HttpClient.send(HttpMethod method,
String requestURI,
MultiMap headers,
ReadStream<Buffer> body,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Sends an HTTP request to send to the server at the default host and port, specifying a response handler to receive
the response
|
Future<HttpClientResponse> |
HttpClient.send(HttpMethod method,
String host,
String requestURI,
MultiMap headers)
Like
HttpClient.send(HttpMethod, String, String, MultiMap, Handler) but returns a Future of the asynchronous result |
Future<HttpClientResponse> |
HttpClient.send(HttpMethod method,
String host,
String requestURI,
MultiMap headers,
Buffer body)
Like
HttpClient.send(HttpMethod, String, String, MultiMap, Buffer, Handler) but returns a Future of the asynchronous result |
void |
HttpClient.send(HttpMethod method,
String host,
String requestURI,
MultiMap headers,
Buffer body,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Sends an HTTP request to send to the server at the specified host and default port, specifying a response handler to receive
the response
|
void |
HttpClient.send(HttpMethod method,
String host,
String requestURI,
MultiMap headers,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Sends an HTTP request to send to the server at the specified host and default port, specifying a response handler to receive
the response
|
Future<HttpClientResponse> |
HttpClient.send(HttpMethod method,
String host,
String requestURI,
MultiMap headers,
ReadStream<Buffer> body)
Like
HttpClient.send(HttpMethod, String, String, MultiMap, ReadStream, Handler) but returns a Future of the asynchronous result |
void |
HttpClient.send(HttpMethod method,
String host,
String requestURI,
MultiMap headers,
ReadStream<Buffer> body,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Sends an HTTP request to send to the server at the specified host and default port, specifying a response handler to receive
the response
|
WebSocketConnectOptions |
WebSocketConnectOptions.setHeaders(MultiMap headers) |
RequestOptions |
RequestOptions.setHeaders(MultiMap headers)
Set request headers from a multi-map.
|
Future<WebSocket> |
HttpClient.webSocketAbs(String url,
MultiMap headers,
WebsocketVersion version,
List<String> subProtocols)
Like
HttpClient.webSocketAbs(String, MultiMap, WebsocketVersion, List, Handler) but returns a Future of the asynchronous result |
void |
HttpClient.webSocketAbs(String url,
MultiMap headers,
WebsocketVersion version,
List<String> subProtocols,
Handler<AsyncResult<WebSocket>> handler)
Connect a WebSocket with the specified absolute url, with the specified headers, using
the specified version of WebSockets, and the specified WebSocket sub protocols.
|
Modifier and Type | Method and Description |
---|---|
MultiMap |
HttpRequest.headers() |
MultiMap |
HttpResponse.headers() |
Copyright © 2020 Eclipse. All rights reserved.