| Modifier and Type | Field and Description |
|---|---|
| private final CloseFuture | |
| private final HttpClientInternal | |
| public static final String | |
| private final VertxInternal |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close(Handler<AsyncResult<Void>> handler)
Implements io. Close the client. |
| public Future | close()
Implements io. Like |
| public Future | connect(SocketAddress
the server address server, SocketAddress the peer peer)Implements io. Connect to a server. |
| public HttpClient | connectionHandler(Handler<HttpConnection> handler)
Implements io. Set a connection handler for the client. |
| public HttpClientOptions | |
| public HttpClient | redirectHandler(Function<HttpClientResponse, Future<RequestOptions>>
the new redirect handler handler)Implements io. Set a redirect handler for the http client. |
| public Function | |
| public void | request(RequestOptions
the request options options, Handler<AsyncResult<HttpClientRequest>> the handler called when the request is ready to be sent handler)Implements io. Create an HTTP request to send to the server. |
| public Future | request(RequestOptions options)
Implements io. Like |
| public void | request(HttpMethod
the HTTP method method, int the port port, String the host host, String the relative URI requestURI, Handler<AsyncResult<HttpClientRequest>> the handler called when the request is ready to be sent handler)Implements io. Create an HTTP request to send to the server at the |
| public Future | request(HttpMethod method, int port, String host, String requestURI)
Overrides default io. Like |
| public void | request(HttpMethod
the HTTP method method, String the host host, String the relative URI requestURI, Handler<AsyncResult<HttpClientRequest>> the handler called when the request is ready to be sent handler)Implements io. Create an HTTP request to send to the server at the |
| public Future | request(HttpMethod method, String host, String requestURI)
Overrides default io. Like |
| public void | request(HttpMethod
the HTTP method method, String the relative URI requestURI, Handler<AsyncResult<HttpClientRequest>> the handler called when the request is ready to be sent handler)Implements io. Create an HTTP request to send to the server at the default host and port. |
| public Future | request(HttpMethod method, String requestURI)
Overrides default io. Like |
| public Future | updateSSLOptions(SSLOptions
the new SSL options options, boolean force the update when options are equals force)Implements io. Update the client with new SSL |
| public VertxInternal | |
| public void | webSocket(int
the port port, String the host host, String the relative URI requestURI, Handler<AsyncResult<WebSocket>> handler that will be called with the WebSocket when connected handler)Implements io. Connect a WebSocket to the specified port, host and relative request URI |
| public Future | webSocket(int port, String host, String requestURI)
Implements io. Like |
| public void | webSocket(String
the host host, String the relative URI requestURI, Handler<AsyncResult<WebSocket>> handler that will be called with the WebSocket when connected handler)Implements io. Connect a WebSocket to the host and relative request URI and default port |
| public Future | webSocket(String host, String requestURI)
Implements io. Like |
| public void | webSocket(String
the relative URI requestURI, Handler<AsyncResult<WebSocket>> handler that will be called with the WebSocket when connected handler)Implements io. Connect a WebSocket at the relative request URI using the default host and port |
| public Future | webSocket(String requestURI)
Implements io. Like |
| public void | webSocket(WebSocketConnectOptions
the request options options, Handler<AsyncResult<WebSocket>> handler)Implements io. Connect a WebSocket with the specified options. |
| public Future | webSocket(WebSocketConnectOptions options)
Implements io. Like |
| public void | webSocketAbs(String
the absolute url url, MultiMap the headers headers, WebsocketVersion the WebSocket version version, List<String> the subprotocols to use subProtocols, Handler<AsyncResult<WebSocket>> handler that will be called if WebSocket connection fails handler)Implements io. Connect a WebSocket with the specified absolute url, with the specified headers, using the specified version of WebSockets, and the specified WebSocket sub protocols. |
| public Future | webSocketAbs(String url, MultiMap headers, WebsocketVersion version, List<String> subProtocols)
Implements io. Like |
| closeFuture | back to summary |
|---|---|
| private final CloseFuture closeFuture | |
| delegate | back to summary |
|---|---|
| private final HttpClientInternal delegate | |
| SHARED_MAP_NAME | back to summary |
|---|---|
| public static final String SHARED_MAP_NAME | |
| vertx | back to summary |
|---|---|
| private final VertxInternal vertx | |
| SharedHttpClient | back to summary |
|---|---|
| public SharedHttpClient(VertxInternal vertx, CloseFuture closeFuture, HttpClient delegate) | |
| close | back to summary |
|---|---|
| public void close(Handler<AsyncResult<Void>> handler) Implements io. Doc from io. Close the client. Closing will close down any pooled connections. Clients should always be closed after use.
| |
| close | back to summary |
|---|---|
| public Future Implements io. Doc from io. Like
| |
| connect | back to summary |
|---|---|
| public Future Implements io. Doc from io. Connect to a server.
| |
| connectionHandler | back to summary |
|---|---|
| public HttpClient connectionHandler(Handler<HttpConnection> handler) Implements io. Doc from io. Set a connection handler for the client. This handler is called when a new connection is established.
| |
| options | back to summary |
|---|---|
| public HttpClientOptions options() Implements io.
| |
| redirectHandler | back to summary |
|---|---|
| public HttpClient redirectHandler(Function<HttpClientResponse, Future<RequestOptions>> handler) Implements io. Doc from io. Set a redirect handler for the http client.
The redirect handler is called when a
The redirect handler is passed the
The handler must return a
| |
| redirectHandler | back to summary |
|---|---|
| public Function Implements io.
| |
| request | back to summary |
|---|---|
| public void request(RequestOptions options, Handler<AsyncResult<HttpClientRequest>> handler) Implements io. Doc from io. Create an HTTP request to send to the server. The
| |
| request | back to summary |
|---|---|
| public Future Implements io. Doc from io. Like
| |
| request | back to summary |
|---|---|
| public void request(HttpMethod method, int port, String host, String requestURI, Handler<AsyncResult<HttpClientRequest>> handler) Implements io. Doc from io. Create an HTTP request to send to the server at the
| |
| request | back to summary |
|---|---|
| public Future Overrides default io. Doc from io. Like
| |
| request | back to summary |
|---|---|
| public void request(HttpMethod method, String host, String requestURI, Handler<AsyncResult<HttpClientRequest>> handler) Implements io. Doc from io. Create an HTTP request to send to the server at the
| |
| request | back to summary |
|---|---|
| public Future Overrides default io. Doc from io. Like
| |
| request | back to summary |
|---|---|
| public void request(HttpMethod method, String requestURI, Handler<AsyncResult<HttpClientRequest>> handler) Implements io. Doc from io. Create an HTTP request to send to the server at the default host and port. The
| |
| request | back to summary |
|---|---|
| public Future Overrides default io. Doc from io. Like
| |
| updateSSLOptions | back to summary |
|---|---|
| public Future Implements io. Doc from io. Update the client with new SSL The The boolean succeeded future result indicates whether the update occurred.
| |
| vertx | back to summary |
|---|---|
| public VertxInternal vertx() Implements io.
| |
| webSocket | back to summary |
|---|---|
| public void webSocket(int port, String host, String requestURI, Handler<AsyncResult<WebSocket>> handler) Implements io. Doc from io. Connect a WebSocket to the specified port, host and relative request URI | |
| webSocket | back to summary |
|---|---|
| public Future Implements io. Doc from io. Like
| |
| webSocket | back to summary |
|---|---|
| public void webSocket(String host, String requestURI, Handler<AsyncResult<WebSocket>> handler) Implements io. Doc from io. Connect a WebSocket to the host and relative request URI and default port | |
| webSocket | back to summary |
|---|---|
| public Future Implements io. Doc from io. Like
| |
| webSocket | back to summary |
|---|---|
| public void webSocket(String requestURI, Handler<AsyncResult<WebSocket>> handler) Implements io. Doc from io. Connect a WebSocket at the relative request URI using the default host and port
| |
| webSocket | back to summary |
|---|---|
| public Future Implements io. Doc from io. Like
| |
| webSocket | back to summary |
|---|---|
| public void webSocket(WebSocketConnectOptions options, Handler<AsyncResult<WebSocket>> handler) Implements io. Doc from io. Connect a WebSocket with the specified options.
| |
| webSocket | back to summary |
|---|---|
| public Future Implements io. Doc from io. Like
| |
| webSocketAbs | back to summary |
|---|---|
| public void webSocketAbs(String url, MultiMap headers, WebsocketVersion version, List<String> subProtocols, Handler<AsyncResult<WebSocket>> handler) Implements io. Doc from io. Connect a WebSocket with the specified absolute url, with the specified headers, using the specified version of WebSockets, and the specified WebSocket sub protocols.
| |
| webSocketAbs | back to summary |
|---|---|
| public Future Implements io. Doc from io. Like
| |