public class HttpClientImpl extends Object implements HttpClient, MetricsProvider
| Constructor and Description |
|---|
HttpClientImpl(VertxInternal vertx,
HttpClientOptions options) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the client.
|
HttpClient |
connectionHandler(Handler<HttpConnection> handler)
Set a connection handler for the client.
|
HttpClientRequest |
delete(int port,
String host,
String requestURI)
Create an HTTP DELETE request to send to the server at the specified host and port.
|
HttpClientRequest |
delete(int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP DELETE request to send to the server at the specified host and port, specifying a response handler to receive
the response
|
HttpClientRequest |
delete(RequestOptions options)
Create an HTTP DELETE request to send to the server with the specified options.
|
HttpClientRequest |
delete(RequestOptions options,
Handler<HttpClientResponse> responseHandler)
Create an HTTP DELETE request to send to the server with the specified options, specifying a response handler to receive
the response
|
HttpClientRequest |
delete(String requestURI)
Create an HTTP DELETE request to send to the server at the default host and port.
|
HttpClientRequest |
delete(String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP DELETE request to send to the server at the default host and port, specifying a response handler to receive
the response
|
HttpClientRequest |
delete(String host,
String requestURI)
Create an HTTP DELETE request to send to the server at the specified host and default port.
|
HttpClientRequest |
delete(String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP DELETE request to send to the server at the specified host and default port, specifying a response handler to receive
the response
|
HttpClientRequest |
deleteAbs(String absoluteURI)
Create an HTTP DELETE request to send to the server using an absolute URI
|
HttpClientRequest |
deleteAbs(String absoluteURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP DELETE request to send to the server using an absolute URI, specifying a response handler to receive
the response
|
protected void |
finalize() |
HttpClientRequest |
get(int port,
String host,
String requestURI)
Create an HTTP GET request to send to the server at the specified host and port.
|
HttpClientRequest |
get(int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP GET request to send to the server at the specified host and port, specifying a response handler to receive
the response
|
HttpClientRequest |
get(RequestOptions options)
Create an HTTP GET request to send to the server with the specified options.
|
HttpClientRequest |
get(RequestOptions options,
Handler<HttpClientResponse> responseHandler)
Create an HTTP GET request to send to the server with the specified options, specifying a response handler to receive
the response
|
HttpClientRequest |
get(String requestURI)
Create an HTTP GET request to send to the server at the default host and port.
|
HttpClientRequest |
get(String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP GET request to send to the server at the default host and port, specifying a response handler to receive
the response
|
HttpClientRequest |
get(String host,
String requestURI)
Create an HTTP GET request to send to the server at the specified host and default port.
|
HttpClientRequest |
get(String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP GET request to send to the server at the specified host and default port, specifying a response handler to receive
the response
|
HttpClientRequest |
getAbs(String absoluteURI)
Create an HTTP GET request to send to the server using an absolute URI
|
HttpClientRequest |
getAbs(String absoluteURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP GET request to send to the server using an absolute URI, specifying a response handler to receive
the response
|
Metrics |
getMetrics()
Returns the metrics implementation.
|
HttpClient |
getNow(int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Sends an HTTP GET request to the server at the specified host and port, specifying a response handler to receive
the response
|
HttpClient |
getNow(RequestOptions options,
Handler<HttpClientResponse> responseHandler)
Sends an HTTP GET request to the server with the specified options, specifying a response handler to receive
the response
|
HttpClient |
getNow(String requestURI,
Handler<HttpClientResponse> responseHandler)
Sends an HTTP GET request to the server at the default host and port, specifying a response handler to receive
the response
|
HttpClient |
getNow(String host,
String requestURI,
Handler<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
|
HttpClientOptions |
getOptions() |
VertxInternal |
getVertx() |
HttpClientRequest |
head(int port,
String host,
String requestURI)
Create an HTTP HEAD request to send to the server at the specified host and port.
|
HttpClientRequest |
head(int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP HEAD request to send to the server at the specified host and port, specifying a response handler to receive
the response
|
HttpClientRequest |
head(RequestOptions options)
Create an HTTP HEAD request to send to the server with the specified options.
|
HttpClientRequest |
head(RequestOptions options,
Handler<HttpClientResponse> responseHandler)
Create an HTTP HEAD request to send to the server with the specified options, specifying a response handler to receive
the response
|
HttpClientRequest |
head(String requestURI)
Create an HTTP HEAD request to send to the server at the default host and port.
|
HttpClientRequest |
head(String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP HEAD request to send to the server at the default host and port, specifying a response handler to receive
the response
|
HttpClientRequest |
head(String host,
String requestURI)
Create an HTTP HEAD request to send to the server at the specified host and default port.
|
HttpClientRequest |
head(String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP HEAD request to send to the server at the specified host and default port, specifying a response handler to receive
the response
|
HttpClientRequest |
headAbs(String absoluteURI)
Create an HTTP HEAD request to send to the server using an absolute URI
|
HttpClientRequest |
headAbs(String absoluteURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP HEAD request to send to the server using an absolute URI, specifying a response handler to receive
the response
|
HttpClient |
headNow(int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Sends an HTTP HEAD request to the server at the specified host and port, specifying a response handler to receive
the response
|
HttpClient |
headNow(RequestOptions options,
Handler<HttpClientResponse> responseHandler)
Sends an HTTP HEAD request to the server with the specified options, specifying a response handler to receive
the response
|
HttpClient |
headNow(String requestURI,
Handler<HttpClientResponse> responseHandler)
Sends an HTTP HEAD request to the server at the default host and port, specifying a response handler to receive
the response
|
HttpClient |
headNow(String host,
String requestURI,
Handler<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
|
boolean |
isMetricsEnabled()
Whether the metrics are enabled for this measured object
|
HttpClientRequest |
options(int port,
String host,
String requestURI)
Create an HTTP OPTIONS request to send to the server at the specified host and port.
|
HttpClientRequest |
options(int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP OPTIONS request to send to the server at the specified host and port, specifying a response handler to receive
the response
|
HttpClientRequest |
options(RequestOptions options)
Create an HTTP OPTIONS request to send to the server with the specified options.
|
HttpClientRequest |
options(RequestOptions options,
Handler<HttpClientResponse> responseHandler)
Create an HTTP OPTIONS request to send to the server with the specified options, specifying a response handler to receive
the response
|
HttpClientRequest |
options(String requestURI)
Create an HTTP OPTIONS request to send to the server at the default host and port.
|
HttpClientRequest |
options(String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP OPTIONS request to send to the server at the default host and port, specifying a response handler to receive
the response
|
HttpClientRequest |
options(String host,
String requestURI)
Create an HTTP OPTIONS request to send to the server at the specified host and default port.
|
HttpClientRequest |
options(String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP OPTIONS request to send to the server at the specified host and default port, specifying a response handler to receive
the response
|
HttpClientRequest |
optionsAbs(String absoluteURI)
Create an HTTP OPTIONS request to send to the server using an absolute URI
|
HttpClientRequest |
optionsAbs(String absoluteURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP OPTIONS request to send to the server using an absolute URI, specifying a response handler to receive
the response
|
HttpClient |
optionsNow(int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Sends an HTTP OPTIONS request to the server at the specified host and port, specifying a response handler to receive
the response
|
HttpClient |
optionsNow(RequestOptions options,
Handler<HttpClientResponse> responseHandler)
Sends an HTTP OPTIONS request to the server with the specified options, specifying a response handler to receive
the response
|
HttpClient |
optionsNow(String requestURI,
Handler<HttpClientResponse> responseHandler)
Sends an HTTP OPTIONS request to the server at the default host and port, specifying a response handler to receive
the response
|
HttpClient |
optionsNow(String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Sends an HTTP OPTIONS request to the server at the specified host and default port, specifying a response handler to receive
the response
|
HttpClientRequest |
post(int port,
String host,
String requestURI)
Create an HTTP POST request to send to the server at the specified host and port.
|
HttpClientRequest |
post(int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP POST request to send to the server at the specified host and port, specifying a response handler to receive
the response
|
HttpClientRequest |
post(RequestOptions options)
Create an HTTP POST request to send to the server with the specified options.
|
HttpClientRequest |
post(RequestOptions options,
Handler<HttpClientResponse> responseHandler)
Create an HTTP POST request to send to the server with the specified options, specifying a response handler to receive
the response
|
HttpClientRequest |
post(String requestURI)
Create an HTTP POST request to send to the server at the default host and port.
|
HttpClientRequest |
post(String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP POST request to send to the server at the default host and port, specifying a response handler to receive
the response
|
HttpClientRequest |
post(String host,
String requestURI)
Create an HTTP POST request to send to the server at the specified host and default port.
|
HttpClientRequest |
post(String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP POST request to send to the server at the specified host and default port, specifying a response handler to receive
the response
|
HttpClientRequest |
postAbs(String absoluteURI)
Create an HTTP POST request to send to the server using an absolute URI
|
HttpClientRequest |
postAbs(String absoluteURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP POST request to send to the server using an absolute URI, specifying a response handler to receive
the response
|
HttpClientRequest |
put(int port,
String host,
String requestURI)
Create an HTTP PUT request to send to the server at the specified host and port.
|
HttpClientRequest |
put(int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP PUT request to send to the server at the specified host and port, specifying a response handler to receive
the response
|
HttpClientRequest |
put(RequestOptions options)
Create an HTTP PUT request to send to the server with the specified options.
|
HttpClientRequest |
put(RequestOptions options,
Handler<HttpClientResponse> responseHandler)
Create an HTTP PUT request to send to the server with the specified options, specifying a response handler to receive
the response
|
HttpClientRequest |
put(String requestURI)
Create an HTTP PUT request to send to the server at the default host and port.
|
HttpClientRequest |
put(String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP PUT request to send to the server at the default host and port, specifying a response handler to receive
the response
|
HttpClientRequest |
put(String host,
String requestURI)
Create an HTTP PUT request to send to the server at the specified host and default port.
|
HttpClientRequest |
put(String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP PUT request to send to the server at the specified host and default port, specifying a response handler to receive
the response
|
HttpClientRequest |
putAbs(String absoluteURI)
Create an HTTP PUT request to send to the server using an absolute URI
|
HttpClientRequest |
putAbs(String absoluteURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP PUT request to send to the server using an absolute URI, specifying a response handler to receive
the response
|
Function<HttpClientResponse,Future<HttpClientRequest>> |
redirectHandler() |
HttpClient |
redirectHandler(Function<HttpClientResponse,Future<HttpClientRequest>> handler)
Set a redirect handler for the http client.
|
HttpClientRequest |
request(HttpMethod method,
int port,
String host,
String requestURI)
Create an HTTP request to send to the server at the specified host and port.
|
HttpClientRequest |
request(HttpMethod method,
int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP request to send to the server at the specified host and port, specifying a response handler to receive
the response
|
HttpClientRequest |
request(HttpMethod method,
RequestOptions options)
Create an HTTP request to send to the server with the specified options.
|
HttpClientRequest |
request(HttpMethod method,
RequestOptions options,
Handler<HttpClientResponse> responseHandler)
Create an HTTP request to send to the server with the specified options, specifying a response handler to receive
|
HttpClientRequest |
request(HttpMethod method,
SocketAddress serverAddress,
int port,
String host,
String requestURI)
Like
HttpClient.request(HttpMethod, int, String, String) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter. |
HttpClientRequest |
request(HttpMethod method,
SocketAddress serverAddress,
int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Like
HttpClient.request(HttpMethod, int, String, String, Handler) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter. |
HttpClientRequest |
request(HttpMethod method,
SocketAddress serverAddress,
RequestOptions options)
Like
HttpClient.request(HttpMethod, RequestOptions) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter. |
HttpClientRequest |
request(HttpMethod method,
SocketAddress serverAddress,
RequestOptions options,
Handler<HttpClientResponse> responseHandler)
Like
HttpClient.request(HttpMethod, RequestOptions, Handler) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter. |
HttpClientRequest |
request(HttpMethod method,
String requestURI)
Create an HTTP request to send to the server at the default host and port.
|
HttpClientRequest |
request(HttpMethod method,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP request to send to the server at the default host and port, specifying a response handler to receive
the response
|
HttpClientRequest |
request(HttpMethod method,
String host,
String requestURI)
Create an HTTP request to send to the server at the specified host and default port.
|
HttpClientRequest |
request(HttpMethod method,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP request to send to the server at the specified host and default port, specifying a response handler to receive
the response
|
HttpClientRequest |
requestAbs(HttpMethod method,
SocketAddress serverAddress,
String absoluteURI)
Like
HttpClient.requestAbs(HttpMethod, String) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter. |
HttpClientRequest |
requestAbs(HttpMethod method,
SocketAddress serverAddress,
String absoluteURI,
Handler<HttpClientResponse> responseHandler)
Like
HttpClient.requestAbs(HttpMethod, String, Handler) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter. |
HttpClientRequest |
requestAbs(HttpMethod method,
String absoluteURI)
Create an HTTP request to send to the server using an absolute URI
|
HttpClientRequest |
requestAbs(HttpMethod method,
String absoluteURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP request to send to the server using an absolute URI, specifying a response handler to receive
the response
|
void |
webSocket(int port,
String host,
String requestURI,
Handler<AsyncResult<WebSocket>> handler)
Connect a WebSocket to the specified port, host and relative request URI
|
HttpClient |
websocket(int port,
String host,
String requestURI,
Handler<WebSocket> wsConnect)
Connect a WebSocket to the specified port, host and relative request URI
|
HttpClient |
websocket(int port,
String host,
String requestURI,
Handler<WebSocket> wsConnect,
Handler<Throwable> failureHandler)
Connect a WebSocket to the specified port, host and relative request URI
|
HttpClient |
websocket(int port,
String host,
String requestURI,
MultiMap headers,
Handler<WebSocket> wsConnect)
Connect a WebSocket to the specified port, host and relative request URI, and with the specified headers
|
HttpClient |
websocket(int port,
String host,
String requestURI,
MultiMap headers,
Handler<WebSocket> wsConnect,
Handler<Throwable> failureHandler)
Connect a WebSocket to the specified port, host and relative request URI, and with the specified headers
|
HttpClient |
websocket(int port,
String host,
String requestURI,
MultiMap headers,
WebsocketVersion version,
Handler<WebSocket> wsConnect)
Connect a WebSocket to the specified port, host and relative request URI, with the specified headers and using
the specified version of WebSockets
|
HttpClient |
websocket(int port,
String host,
String requestURI,
MultiMap headers,
WebsocketVersion version,
Handler<WebSocket> wsConnect,
Handler<Throwable> failureHandler)
Connect a WebSocket to the specified port, host and relative request URI, with the specified headers and using
the specified version of WebSockets
|
HttpClient |
websocket(int port,
String host,
String requestURI,
MultiMap headers,
WebsocketVersion version,
String subProtocols,
Handler<WebSocket> wsConnect)
Connect a WebSocket to the specified port, host and relative request URI, with the specified headers, using
the specified version of WebSockets, and the specified WebSocket sub protocols
|
HttpClient |
websocket(int port,
String host,
String requestURI,
MultiMap headers,
WebsocketVersion version,
String subProtocols,
Handler<WebSocket> wsConnect,
Handler<Throwable> failureHandler)
Connect a WebSocket to the specified port, host and relative request URI, with the specified headers, using
the specified version of WebSockets, and the specified WebSocket sub protocols
|
HttpClient |
websocket(RequestOptions options,
Handler<WebSocket> wsConnect)
Connect a WebSocket with the specified options
|
HttpClient |
websocket(RequestOptions options,
Handler<WebSocket> wsConnect,
Handler<Throwable> failureHandler)
Connect a WebSocket with the specified options
|
HttpClient |
websocket(RequestOptions options,
MultiMap headers,
Handler<WebSocket> wsConnect)
Connect a WebSocket with the specified options, and with the specified headers
|
HttpClient |
websocket(RequestOptions options,
MultiMap headers,
Handler<WebSocket> wsConnect,
Handler<Throwable> failureHandler)
Connect a WebSocket with the specified options, and with the specified headers
|
HttpClient |
websocket(RequestOptions options,
MultiMap headers,
WebsocketVersion version,
Handler<WebSocket> wsConnect)
Connect a WebSocket with the specified optionsI, with the specified headers and using
the specified version of WebSockets
|
HttpClient |
websocket(RequestOptions options,
MultiMap headers,
WebsocketVersion version,
Handler<WebSocket> wsConnect,
Handler<Throwable> failureHandler)
Connect a WebSocket with the specified options, with the specified headers and using
the specified version of WebSockets
|
HttpClient |
websocket(RequestOptions options,
MultiMap headers,
WebsocketVersion version,
String subProtocols,
Handler<WebSocket> wsConnect)
Connect a WebSocket with the specified options, with the specified headers, using
the specified version of WebSockets, and the specified WebSocket sub protocols
|
HttpClient |
websocket(RequestOptions options,
MultiMap headers,
WebsocketVersion version,
String subProtocols,
Handler<WebSocket> wsConnect,
Handler<Throwable> failureHandler)
Connect a WebSocket with the specified options, with the specified headers, using
the specified version of WebSockets, and the specified WebSocket sub protocols
|
void |
webSocket(String requestURI,
Handler<AsyncResult<WebSocket>> handler)
Connect a WebSocket at the relative request URI using the default host and port
|
HttpClient |
websocket(String requestURI,
Handler<WebSocket> wsConnect)
Connect a WebSocket at the relative request URI using the default host and port
|
HttpClient |
websocket(String requestURI,
Handler<WebSocket> wsConnect,
Handler<Throwable> failureHandler)
Connect a WebSocket at the relative request URI using the default host and port
|
HttpClient |
websocket(String requestURI,
MultiMap headers,
Handler<WebSocket> wsConnect)
Connect a WebSocket at the relative request URI using the default host and port and the specified headers
|
HttpClient |
websocket(String requestURI,
MultiMap headers,
Handler<WebSocket> wsConnect,
Handler<Throwable> failureHandler)
Connect a WebSocket at the relative request URI using the default host and port and the specified headers
|
HttpClient |
websocket(String requestURI,
MultiMap headers,
WebsocketVersion version,
Handler<WebSocket> wsConnect)
Connect a WebSocket at the relative request URI using the default host and port, the specified headers and the
specified version of WebSockets
|
HttpClient |
websocket(String requestURI,
MultiMap headers,
WebsocketVersion version,
Handler<WebSocket> wsConnect,
Handler<Throwable> failureHandler)
Connect a WebSocket at the relative request URI using the default host and port, the specified headers and the
specified version of WebSockets
|
HttpClient |
websocket(String requestURI,
MultiMap headers,
WebsocketVersion version,
String subProtocols,
Handler<WebSocket> wsConnect)
Connect a WebSocket at the relative request URI using the default host and port, the specified headers, the
specified version of WebSockets and the specified sub protocols
|
HttpClient |
websocket(String requestURI,
MultiMap headers,
WebsocketVersion version,
String subProtocols,
Handler<WebSocket> wsConnect,
Handler<Throwable> failureHandler)
Connect a WebSocket at the relative request URI using the default host and port, the specified headers, the
specified version of WebSockets and the specified sub protocols
|
void |
webSocket(String host,
String requestURI,
Handler<AsyncResult<WebSocket>> handler)
Connect a WebSocket to the host and relative request URI and default port
|
HttpClient |
websocket(String host,
String requestURI,
Handler<WebSocket> wsConnect)
Connect a WebSocket to the host and relative request URI and default port
|
HttpClient |
websocket(String host,
String requestURI,
Handler<WebSocket> wsConnect,
Handler<Throwable> failureHandler)
Connect a WebSocket to the host and relative request URI and default port
|
HttpClient |
websocket(String host,
String requestURI,
MultiMap headers,
Handler<WebSocket> wsConnect)
Connect a WebSocket to the specified host,relative request UR, and default port and with the specified headers
|
HttpClient |
websocket(String host,
String requestURI,
MultiMap headers,
Handler<WebSocket> wsConnect,
Handler<Throwable> failureHandler)
Connect a WebSocket to the specified host,relative request UR, and default port and with the specified headers
|
HttpClient |
websocket(String host,
String requestURI,
MultiMap headers,
WebsocketVersion version,
Handler<WebSocket> wsConnect)
Connect a WebSocket to the specified host, relative request URI and default port with the specified headers and using
the specified version of WebSockets
|
HttpClient |
websocket(String host,
String requestURI,
MultiMap headers,
WebsocketVersion version,
Handler<WebSocket> wsConnect,
Handler<Throwable> failureHandler)
Connect a WebSocket to the specified host, relative request URI and default port with the specified headers and using
the specified version of WebSockets
|
HttpClient |
websocket(String host,
String requestURI,
MultiMap headers,
WebsocketVersion version,
String subProtocols,
Handler<WebSocket> wsConnect)
Connect a WebSocket to the specified host, relative request URI and default port, with the specified headers, using
the specified version of WebSockets, and the specified WebSocket sub protocols
|
HttpClient |
websocket(String host,
String requestURI,
MultiMap headers,
WebsocketVersion version,
String subProtocols,
Handler<WebSocket> wsConnect,
Handler<Throwable> failureHandler)
Connect a WebSocket to the specified host, relative request URI and default port, with the specified headers, using
the specified version of WebSockets, and the specified WebSocket sub protocols
|
void |
webSocket(WebSocketConnectOptions connectOptions,
Handler<AsyncResult<WebSocket>> handler)
Connect a WebSocket with the specified options.
|
void |
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.
|
HttpClient |
websocketAbs(String url,
MultiMap headers,
WebsocketVersion version,
String subProtocols,
Handler<WebSocket> wsConnect,
Handler<Throwable> failureHandler)
Connect a WebSocket with the specified absolute url, with the specified headers, using
the specified version of WebSockets, and the specified WebSocket sub protocols.
|
io.vertx.core.http.impl.HttpClientImpl.WebSocketStream |
websocketStream(int port,
String host,
String requestURI)
Create a WebSocket stream to the specified port, host and relative request URI
|
io.vertx.core.http.impl.HttpClientImpl.WebSocketStream |
websocketStream(int port,
String host,
String requestURI,
MultiMap headers)
Create a WebSocket stream to the specified port, host and relative request URI, and with the specified headers
|
io.vertx.core.http.impl.HttpClientImpl.WebSocketStream |
websocketStream(int port,
String host,
String requestURI,
MultiMap headers,
WebsocketVersion version)
Create a WebSocket stream to the specified port, host and relative request URI, with the specified headers and using
the specified version of WebSockets
|
io.vertx.core.http.impl.HttpClientImpl.WebSocketStream |
websocketStream(int port,
String host,
String requestURI,
MultiMap headers,
WebsocketVersion version,
String subProtocols)
Create a WebSocket stream to the specified port, host and relative request URI, with the specified headers, using
the specified version of WebSockets, and the specified WebSocket sub protocols
|
io.vertx.core.http.impl.HttpClientImpl.WebSocketStream |
websocketStream(RequestOptions options)
Create a WebSocket stream with the specified options
|
io.vertx.core.http.impl.HttpClientImpl.WebSocketStream |
websocketStream(RequestOptions options,
MultiMap headers)
Create a WebSocket stream with the specified options, and with the specified headers
|
io.vertx.core.http.impl.HttpClientImpl.WebSocketStream |
websocketStream(RequestOptions options,
MultiMap headers,
WebsocketVersion version)
Create a WebSocket stream with the specified options, with the specified headers and using
the specified version of WebSockets
|
io.vertx.core.http.impl.HttpClientImpl.WebSocketStream |
websocketStream(RequestOptions options,
MultiMap headers,
WebsocketVersion version,
String subProtocols)
Create a WebSocket stream to the specified port, host and relative request URI, with the specified headers, using
the specified version of WebSockets, and the specified WebSocket sub protocols
|
io.vertx.core.http.impl.HttpClientImpl.WebSocketStream |
websocketStream(String requestURI)
Create a WebSocket stream at the relative request URI using the default host and port and the specified headers
|
io.vertx.core.http.impl.HttpClientImpl.WebSocketStream |
websocketStream(String requestURI,
MultiMap headers)
Create a WebSocket stream at the relative request URI using the default host and port and the specified headers
|
io.vertx.core.http.impl.HttpClientImpl.WebSocketStream |
websocketStream(String requestURI,
MultiMap headers,
WebsocketVersion version)
Create a WebSocket stream at the relative request URI using the default host and port, the specified headers and the
specified version of WebSockets
|
io.vertx.core.http.impl.HttpClientImpl.WebSocketStream |
websocketStream(String requestURI,
MultiMap headers,
WebsocketVersion version,
String subProtocols)
Create a WebSocket stream at the relative request URI using the default host and port, the specified headers, the
specified version of WebSockets and the specified sub protocols
|
io.vertx.core.http.impl.HttpClientImpl.WebSocketStream |
websocketStream(String host,
String requestURI)
Create a WebSocket stream to the specified host, relative request URI and default port
|
io.vertx.core.http.impl.HttpClientImpl.WebSocketStream |
websocketStream(String host,
String requestURI,
MultiMap headers)
Create a WebSocket stream to the specified host, relative request URI and default port and with the specified headers
|
io.vertx.core.http.impl.HttpClientImpl.WebSocketStream |
websocketStream(String host,
String requestURI,
MultiMap headers,
WebsocketVersion version)
Create a WebSocket stream with the specified options and with the specified headers and using
the specified version of WebSockets
|
io.vertx.core.http.impl.HttpClientImpl.WebSocketStream |
websocketStream(String host,
String requestURI,
MultiMap headers,
WebsocketVersion version,
String subProtocols)
Create a WebSocket stream to the specified host, relative request URI and default port, with the specified headers, using
the specified version of WebSockets, and the specified WebSocket sub protocols
|
io.vertx.core.http.impl.HttpClientImpl.WebSocketStream |
websocketStreamAbs(String url,
MultiMap headers,
WebsocketVersion version,
String subProtocols)
Create a WebSocket stream with the specified absolute url, the specified headers, using the specified version of WebSockets,
and the specified WebSocket sub protocols.
|
public HttpClientImpl(VertxInternal vertx, HttpClientOptions options)
public HttpClient websocket(RequestOptions options, Handler<WebSocket> wsConnect)
HttpClientwebsocket in interface HttpClientoptions - the request optionswsConnect - handler that will be called with the WebSocket when connectedpublic HttpClient websocket(int port, String host, String requestURI, Handler<WebSocket> wsConnect)
HttpClientwebsocket in interface HttpClientport - the porthost - the hostrequestURI - the relative URIwsConnect - handler that will be called with the WebSocket when connectedpublic HttpClient websocket(RequestOptions options, Handler<WebSocket> wsConnect, Handler<Throwable> failureHandler)
HttpClientwebsocket in interface HttpClientoptions - the request optionswsConnect - handler that will be called with the WebSocket when connectedfailureHandler - handler that will be called if WebSocket connection failspublic HttpClient websocket(int port, String host, String requestURI, Handler<WebSocket> wsConnect, Handler<Throwable> failureHandler)
HttpClientwebsocket in interface HttpClientport - the porthost - the hostrequestURI - the relative URIwsConnect - handler that will be called with the WebSocket when connectedfailureHandler - handler that will be called if WebSocket connection failspublic HttpClient websocket(String host, String requestURI, Handler<WebSocket> wsConnect)
HttpClientwebsocket in interface HttpClienthost - the hostrequestURI - the relative URIwsConnect - handler that will be called with the WebSocket when connectedpublic HttpClient websocket(String host, String requestURI, Handler<WebSocket> wsConnect, Handler<Throwable> failureHandler)
HttpClientwebsocket in interface HttpClienthost - the hostrequestURI - the relative URIwsConnect - handler that will be called with the WebSocket when connectedfailureHandler - handler that will be called if WebSocket connection failspublic HttpClient websocket(RequestOptions options, MultiMap headers, Handler<WebSocket> wsConnect)
HttpClientwebsocket in interface HttpClientoptions - the request optionsheaders - the headerswsConnect - handler that will be called with the WebSocket when connectedpublic HttpClient websocket(int port, String host, String requestURI, MultiMap headers, Handler<WebSocket> wsConnect)
HttpClientwebsocket in interface HttpClientport - the porthost - the hostrequestURI - the relative URIheaders - the headerswsConnect - handler that will be called with the WebSocket when connectedpublic HttpClient websocket(RequestOptions options, MultiMap headers, Handler<WebSocket> wsConnect, Handler<Throwable> failureHandler)
HttpClientwebsocket in interface HttpClientoptions - the request optionsheaders - the headerswsConnect - handler that will be called with the WebSocket when connectedfailureHandler - handler that will be called if WebSocket connection failspublic HttpClient websocket(int port, String host, String requestURI, MultiMap headers, Handler<WebSocket> wsConnect, Handler<Throwable> failureHandler)
HttpClientwebsocket in interface HttpClientport - the porthost - the hostrequestURI - the relative URIheaders - the headerswsConnect - handler that will be called with the WebSocket when connectedfailureHandler - handler that will be called if WebSocket connection failspublic HttpClient websocket(String host, String requestURI, MultiMap headers, Handler<WebSocket> wsConnect)
HttpClientwebsocket in interface HttpClienthost - the hostrequestURI - the relative URIheaders - the headerswsConnect - handler that will be called with the WebSocket when connectedpublic HttpClient websocket(String host, String requestURI, MultiMap headers, Handler<WebSocket> wsConnect, Handler<Throwable> failureHandler)
HttpClientwebsocket in interface HttpClienthost - the hostrequestURI - the relative URIheaders - the headerswsConnect - handler that will be called with the WebSocket when connectedfailureHandler - handler that will be called if WebSocket connection failspublic HttpClient websocket(RequestOptions options, MultiMap headers, WebsocketVersion version, Handler<WebSocket> wsConnect)
HttpClientwebsocket in interface HttpClientoptions - the request optionsheaders - the headersversion - the WebSocket versionwsConnect - handler that will be called with the WebSocket when connectedpublic HttpClient websocket(int port, String host, String requestURI, MultiMap headers, WebsocketVersion version, Handler<WebSocket> wsConnect)
HttpClientwebsocket in interface HttpClientport - the porthost - the hostrequestURI - the relative URIheaders - the headersversion - the WebSocket versionwsConnect - handler that will be called with the WebSocket when connectedpublic HttpClient websocket(RequestOptions options, MultiMap headers, WebsocketVersion version, Handler<WebSocket> wsConnect, Handler<Throwable> failureHandler)
HttpClientwebsocket in interface HttpClientoptions - the request optionsheaders - the headersversion - the WebSocket versionwsConnect - handler that will be called with the WebSocket when connectedfailureHandler - handler that will be called if WebSocket connection failspublic HttpClient websocket(int port, String host, String requestURI, MultiMap headers, WebsocketVersion version, Handler<WebSocket> wsConnect, Handler<Throwable> failureHandler)
HttpClientwebsocket in interface HttpClientport - the porthost - the hostrequestURI - the relative URIheaders - the headersversion - the WebSocket versionwsConnect - handler that will be called with the WebSocket when connectedfailureHandler - handler that will be called if WebSocket connection failspublic HttpClient websocket(String host, String requestURI, MultiMap headers, WebsocketVersion version, Handler<WebSocket> wsConnect)
HttpClientwebsocket in interface HttpClienthost - the hostrequestURI - the relative URIheaders - the headersversion - the WebSocket versionwsConnect - handler that will be called with the WebSocket when connectedpublic HttpClient websocket(String host, String requestURI, MultiMap headers, WebsocketVersion version, Handler<WebSocket> wsConnect, Handler<Throwable> failureHandler)
HttpClientwebsocket in interface HttpClienthost - the hostrequestURI - the relative URIheaders - the headersversion - the WebSocket versionwsConnect - handler that will be called with the WebSocket when connectedfailureHandler - handler that will be called if WebSocket connection failspublic HttpClient websocket(RequestOptions options, MultiMap headers, WebsocketVersion version, String subProtocols, Handler<WebSocket> wsConnect)
HttpClientwebsocket in interface HttpClientoptions - the request optionsheaders - the headersversion - the WebSocket versionsubProtocols - the subprotocols to usewsConnect - handler that will be called with the WebSocket when connectedpublic HttpClient websocket(int port, String host, String requestURI, MultiMap headers, WebsocketVersion version, String subProtocols, Handler<WebSocket> wsConnect)
HttpClientwebsocket in interface HttpClientport - the porthost - the hostrequestURI - the relative URIheaders - the headersversion - the WebSocket versionsubProtocols - the subprotocols to usewsConnect - handler that will be called with the WebSocket when connectedpublic HttpClient websocketAbs(String url, MultiMap headers, WebsocketVersion version, String subProtocols, Handler<WebSocket> wsConnect, Handler<Throwable> failureHandler)
HttpClientwebsocketAbs in interface HttpClienturl - the absolute urlheaders - the headersversion - the WebSocket versionsubProtocols - the subprotocols to usewsConnect - handler that will be called with the WebSocket when connectedfailureHandler - handler that will be called if WebSocket connection failspublic HttpClient websocket(RequestOptions options, MultiMap headers, WebsocketVersion version, String subProtocols, Handler<WebSocket> wsConnect, Handler<Throwable> failureHandler)
HttpClientwebsocket in interface HttpClientoptions - the request optionsheaders - the headersversion - the WebSocket versionsubProtocols - the subprotocols to usewsConnect - handler that will be called with the WebSocket when connectedfailureHandler - handler that will be called if WebSocket connection failspublic HttpClient websocket(int port, String host, String requestURI, MultiMap headers, WebsocketVersion version, String subProtocols, Handler<WebSocket> wsConnect, Handler<Throwable> failureHandler)
HttpClientwebsocket in interface HttpClientport - the porthost - the hostrequestURI - the relative URIheaders - the headersversion - the WebSocket versionsubProtocols - the subprotocols to usewsConnect - handler that will be called with the WebSocket when connectedfailureHandler - handler that will be called if WebSocket connection failspublic HttpClient websocket(String host, String requestURI, MultiMap headers, WebsocketVersion version, String subProtocols, Handler<WebSocket> wsConnect)
HttpClientwebsocket in interface HttpClienthost - the hostrequestURI - the relative URIheaders - the headersversion - the WebSocket versionsubProtocols - the subprotocols to usewsConnect - handler that will be called with the WebSocket when connectedpublic HttpClient websocket(String host, String requestURI, MultiMap headers, WebsocketVersion version, String subProtocols, Handler<WebSocket> wsConnect, Handler<Throwable> failureHandler)
HttpClientwebsocket in interface HttpClienthost - the hostrequestURI - the relative URIheaders - the headersversion - the WebSocket versionsubProtocols - the subprotocols to usewsConnect - handler that will be called with the WebSocket when connectedfailureHandler - handler that will be called if WebSocket connection failspublic HttpClient websocket(String requestURI, Handler<WebSocket> wsConnect)
HttpClientwebsocket in interface HttpClientrequestURI - the relative URIwsConnect - handler that will be called with the WebSocket when connectedpublic HttpClient websocket(String requestURI, Handler<WebSocket> wsConnect, Handler<Throwable> failureHandler)
HttpClientwebsocket in interface HttpClientrequestURI - the relative URIwsConnect - handler that will be called with the WebSocket when connectedfailureHandler - handler that will be called if WebSocket connection failspublic HttpClient websocket(String requestURI, MultiMap headers, Handler<WebSocket> wsConnect)
HttpClientwebsocket in interface HttpClientrequestURI - the relative URIheaders - the headerswsConnect - handler that will be called with the WebSocket when connectedpublic HttpClient websocket(String requestURI, MultiMap headers, Handler<WebSocket> wsConnect, Handler<Throwable> failureHandler)
HttpClientwebsocket in interface HttpClientrequestURI - the relative URIheaders - the headerswsConnect - handler that will be called with the WebSocket when connectedfailureHandler - handler that will be called if WebSocket connection failspublic HttpClient websocket(String requestURI, MultiMap headers, WebsocketVersion version, Handler<WebSocket> wsConnect)
HttpClientwebsocket in interface HttpClientrequestURI - the relative URIheaders - the headersversion - the WebSocket versionwsConnect - handler that will be called with the WebSocket when connectedpublic HttpClient websocket(String requestURI, MultiMap headers, WebsocketVersion version, Handler<WebSocket> wsConnect, Handler<Throwable> failureHandler)
HttpClientwebsocket in interface HttpClientrequestURI - the relative URIheaders - the headersversion - the WebSocket versionwsConnect - handler that will be called with the WebSocket when connectedfailureHandler - handler that will be called if WebSocket connection failspublic HttpClient websocket(String requestURI, MultiMap headers, WebsocketVersion version, String subProtocols, Handler<WebSocket> wsConnect)
HttpClientwebsocket in interface HttpClientrequestURI - the relative URIheaders - the headersversion - the WebSocket versionsubProtocols - the subprotocolswsConnect - handler that will be called with the WebSocket when connectedpublic HttpClient websocket(String requestURI, MultiMap headers, WebsocketVersion version, String subProtocols, Handler<WebSocket> wsConnect, Handler<Throwable> failureHandler)
HttpClientwebsocket in interface HttpClientrequestURI - the relative URIheaders - the headersversion - the WebSocket versionsubProtocols - the subprotocolswsConnect - handler that will be called with the WebSocket when connectedfailureHandler - handler that will be called if WebSocket connection failspublic void webSocket(WebSocketConnectOptions connectOptions, Handler<AsyncResult<WebSocket>> handler)
HttpClientwebSocket in interface HttpClientconnectOptions - the request optionspublic void webSocket(int port,
String host,
String requestURI,
Handler<AsyncResult<WebSocket>> handler)
HttpClientwebSocket in interface HttpClientport - the porthost - the hostrequestURI - the relative URIhandler - handler that will be called with the WebSocket when connectedpublic void webSocket(String host, String requestURI, Handler<AsyncResult<WebSocket>> handler)
HttpClientwebSocket in interface HttpClienthost - the hostrequestURI - the relative URIhandler - handler that will be called with the WebSocket when connectedpublic void webSocket(String requestURI, Handler<AsyncResult<WebSocket>> handler)
HttpClientwebSocket in interface HttpClientrequestURI - the relative URIhandler - handler that will be called with the WebSocket when connectedpublic void webSocketAbs(String url, MultiMap headers, WebsocketVersion version, List<String> subProtocols, Handler<AsyncResult<WebSocket>> handler)
HttpClientwebSocketAbs in interface HttpClienturl - the absolute urlheaders - the headersversion - the WebSocket versionsubProtocols - the subprotocols to usehandler - handler that will be called if WebSocket connection failspublic io.vertx.core.http.impl.HttpClientImpl.WebSocketStream websocketStream(RequestOptions options)
HttpClientwebsocketStream in interface HttpClientoptions - the request optionspublic io.vertx.core.http.impl.HttpClientImpl.WebSocketStream websocketStream(int port,
String host,
String requestURI)
HttpClientwebsocketStream in interface HttpClientport - the porthost - the hostrequestURI - the relative URIpublic io.vertx.core.http.impl.HttpClientImpl.WebSocketStream websocketStream(String host, String requestURI)
HttpClientwebsocketStream in interface HttpClienthost - the hostrequestURI - the relative URIpublic io.vertx.core.http.impl.HttpClientImpl.WebSocketStream websocketStream(RequestOptions options, MultiMap headers)
HttpClientwebsocketStream in interface HttpClientoptions - the request optionsheaders - the headerspublic io.vertx.core.http.impl.HttpClientImpl.WebSocketStream websocketStream(int port,
String host,
String requestURI,
MultiMap headers)
HttpClientwebsocketStream in interface HttpClientport - the porthost - the hostrequestURI - the relative URIheaders - the headerspublic io.vertx.core.http.impl.HttpClientImpl.WebSocketStream websocketStream(String host, String requestURI, MultiMap headers)
HttpClientwebsocketStream in interface HttpClienthost - the hostrequestURI - the relative URIheaders - the headerspublic io.vertx.core.http.impl.HttpClientImpl.WebSocketStream websocketStream(RequestOptions options, MultiMap headers, WebsocketVersion version)
HttpClientwebsocketStream in interface HttpClientoptions - the request optionsheaders - the headersversion - the WebSocket versionpublic io.vertx.core.http.impl.HttpClientImpl.WebSocketStream websocketStream(int port,
String host,
String requestURI,
MultiMap headers,
WebsocketVersion version)
HttpClientwebsocketStream in interface HttpClientport - the porthost - the hostrequestURI - the relative URIheaders - the headersversion - the WebSocket versionpublic io.vertx.core.http.impl.HttpClientImpl.WebSocketStream websocketStream(String host, String requestURI, MultiMap headers, WebsocketVersion version)
HttpClientwebsocketStream in interface HttpClienthost - the hostrequestURI - the relative URIheaders - the headersversion - the WebSocket versionpublic io.vertx.core.http.impl.HttpClientImpl.WebSocketStream websocketStreamAbs(String url, MultiMap headers, WebsocketVersion version, String subProtocols)
HttpClientwebsocketStreamAbs in interface HttpClienturl - the absolute urlheaders - the headersversion - the WebSocket versionsubProtocols - the subprotocols to usepublic io.vertx.core.http.impl.HttpClientImpl.WebSocketStream websocketStream(RequestOptions options, MultiMap headers, WebsocketVersion version, String subProtocols)
HttpClientwebsocketStream in interface HttpClientoptions - the request optionsheaders - the headersversion - the WebSocket versionsubProtocols - the subprotocols to usepublic io.vertx.core.http.impl.HttpClientImpl.WebSocketStream websocketStream(int port,
String host,
String requestURI,
MultiMap headers,
WebsocketVersion version,
String subProtocols)
HttpClientwebsocketStream in interface HttpClientport - the porthost - the hostrequestURI - the relative URIheaders - the headersversion - the WebSocket versionsubProtocols - the subprotocols to usepublic io.vertx.core.http.impl.HttpClientImpl.WebSocketStream websocketStream(String host, String requestURI, MultiMap headers, WebsocketVersion version, String subProtocols)
HttpClientwebsocketStream in interface HttpClienthost - the hostrequestURI - the relative URIheaders - the headersversion - the WebSocket versionsubProtocols - the subprotocols to usepublic io.vertx.core.http.impl.HttpClientImpl.WebSocketStream websocketStream(String requestURI)
HttpClientwebsocketStream in interface HttpClientrequestURI - the relative URIpublic io.vertx.core.http.impl.HttpClientImpl.WebSocketStream websocketStream(String requestURI, MultiMap headers)
HttpClientwebsocketStream in interface HttpClientrequestURI - the relative URIheaders - the headerspublic io.vertx.core.http.impl.HttpClientImpl.WebSocketStream websocketStream(String requestURI, MultiMap headers, WebsocketVersion version)
HttpClientwebsocketStream in interface HttpClientrequestURI - the relative URIheaders - the headersversion - the WebSocket versionpublic io.vertx.core.http.impl.HttpClientImpl.WebSocketStream websocketStream(String requestURI, MultiMap headers, WebsocketVersion version, String subProtocols)
HttpClientwebsocketStream in interface HttpClientrequestURI - the relative URIheaders - the headersversion - the WebSocket versionsubProtocols - the subprotocolspublic HttpClientRequest requestAbs(HttpMethod method, String absoluteURI, Handler<HttpClientResponse> responseHandler)
HttpClientrequestAbs in interface HttpClientmethod - the HTTP methodabsoluteURI - the absolute URIresponseHandler - the response handlerpublic HttpClientRequest requestAbs(HttpMethod method, SocketAddress serverAddress, String absoluteURI, Handler<HttpClientResponse> responseHandler)
HttpClientHttpClient.requestAbs(HttpMethod, String, Handler) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter.
The request host header will still be created from the absoluteURI parameter.
Use SocketAddress.domainSocketAddress(String) to connect to a unix domain socket server.
requestAbs in interface HttpClientpublic HttpClientRequest get(RequestOptions options)
HttpClientget in interface HttpClientoptions - the request optionspublic HttpClientRequest request(HttpMethod method, int port, String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClientrequest in interface HttpClientmethod - the HTTP methodport - the porthost - the hostrequestURI - the relative URIresponseHandler - the response handlerpublic HttpClientRequest request(HttpMethod method, SocketAddress serverAddress, int port, String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClientHttpClient.request(HttpMethod, int, String, String, Handler) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter.
The request host header will still be created from the host and port parameters.
Use SocketAddress.domainSocketAddress(String) to connect to a unix domain socket server.
request in interface HttpClientpublic HttpClientRequest request(HttpMethod method, String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClientrequest in interface HttpClientmethod - the HTTP methodhost - the hostrequestURI - the relative URIresponseHandler - the response handlerpublic HttpClientRequest request(HttpMethod method, String requestURI)
HttpClientrequest in interface HttpClientmethod - the HTTP methodrequestURI - the relative URIpublic HttpClientRequest request(HttpMethod method, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClientrequest in interface HttpClientmethod - the HTTP methodrequestURI - the relative URIresponseHandler - the response handlerpublic HttpClientRequest requestAbs(HttpMethod method, String absoluteURI)
HttpClientrequestAbs in interface HttpClientmethod - the HTTP methodabsoluteURI - the absolute URIpublic HttpClientRequest requestAbs(HttpMethod method, SocketAddress serverAddress, String absoluteURI)
HttpClientHttpClient.requestAbs(HttpMethod, String) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter.
The request host header will still be created from the absoluteURI parameter.
Use SocketAddress.domainSocketAddress(String) to connect to a unix domain socket server.
requestAbs in interface HttpClientpublic HttpClientRequest request(HttpMethod method, int port, String host, String requestURI)
HttpClientrequest in interface HttpClientmethod - the HTTP methodport - the porthost - the hostrequestURI - the relative URIpublic HttpClientRequest request(HttpMethod method, SocketAddress serverAddress, int port, String host, String requestURI)
HttpClientHttpClient.request(HttpMethod, int, String, String) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter.
The request host header will still be created from the host and port parameters.
Use SocketAddress.domainSocketAddress(String) to connect to a unix domain socket server.
request in interface HttpClientpublic HttpClientRequest request(HttpMethod method, RequestOptions options, Handler<HttpClientResponse> responseHandler)
HttpClientrequest in interface HttpClientmethod - the HTTP methodoptions - the request optionspublic HttpClientRequest request(HttpMethod method, SocketAddress serverAddress, RequestOptions options, Handler<HttpClientResponse> responseHandler)
HttpClientHttpClient.request(HttpMethod, RequestOptions, Handler) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter.
The request host header will still be created from the options parameter.
Use SocketAddress.domainSocketAddress(String) to connect to a unix domain socket server.
request in interface HttpClientpublic HttpClientRequest request(HttpMethod method, SocketAddress serverAddress, RequestOptions options)
HttpClientHttpClient.request(HttpMethod, RequestOptions) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter.
The request host header will still be created from the options parameter.
Use SocketAddress.domainSocketAddress(String) to connect to a unix domain socket server.
request in interface HttpClientpublic HttpClientRequest request(HttpMethod method, RequestOptions options)
HttpClientrequest in interface HttpClientmethod - the HTTP methodoptions - the request optionspublic HttpClientRequest request(HttpMethod method, String host, String requestURI)
HttpClientrequest in interface HttpClientmethod - the HTTP methodhost - the hostrequestURI - the relative URIpublic HttpClientRequest get(int port, String host, String requestURI)
HttpClientget in interface HttpClientport - the porthost - the hostrequestURI - the relative URIpublic HttpClientRequest get(String host, String requestURI)
HttpClientget in interface HttpClienthost - the hostrequestURI - the relative URIpublic HttpClientRequest get(RequestOptions options, Handler<HttpClientResponse> responseHandler)
HttpClientget in interface HttpClientoptions - the request optionsresponseHandler - the response handlerpublic HttpClientRequest get(int port, String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClientget in interface HttpClientport - the porthost - the hostrequestURI - the relative URIresponseHandler - the response handlerpublic HttpClientRequest get(String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClientget in interface HttpClienthost - the hostrequestURI - the relative URIresponseHandler - the response handlerpublic HttpClientRequest get(String requestURI)
HttpClientget in interface HttpClientrequestURI - the relative URIpublic HttpClientRequest get(String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClientget in interface HttpClientrequestURI - the relative URIresponseHandler - the response handlerpublic HttpClientRequest getAbs(String absoluteURI)
HttpClientgetAbs in interface HttpClientabsoluteURI - the absolute URIpublic HttpClientRequest getAbs(String absoluteURI, Handler<HttpClientResponse> responseHandler)
HttpClientgetAbs in interface HttpClientabsoluteURI - the absolute URIresponseHandler - the response handlerpublic HttpClient getNow(RequestOptions options, Handler<HttpClientResponse> responseHandler)
HttpClientgetNow in interface HttpClientoptions - the request optionsresponseHandler - the response handlerpublic HttpClient getNow(int port, String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClientgetNow in interface HttpClientport - the porthost - the hostrequestURI - the relative URIresponseHandler - the response handlerpublic HttpClient getNow(String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClientgetNow in interface HttpClienthost - the hostrequestURI - the relative URIresponseHandler - the response handlerpublic HttpClient getNow(String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClientgetNow in interface HttpClientrequestURI - the relative URIresponseHandler - the response handlerpublic HttpClientRequest post(RequestOptions options)
HttpClientpost in interface HttpClientoptions - the request optionspublic HttpClientRequest post(int port, String host, String requestURI)
HttpClientpost in interface HttpClientport - the porthost - the hostrequestURI - the relative URIpublic HttpClientRequest post(String host, String requestURI)
HttpClientpost in interface HttpClienthost - the hostrequestURI - the relative URIpublic HttpClientRequest post(RequestOptions options, Handler<HttpClientResponse> responseHandler)
HttpClientpost in interface HttpClientoptions - the request optionsresponseHandler - the response handlerpublic HttpClientRequest post(int port, String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClientpost in interface HttpClientport - the porthost - the hostrequestURI - the relative URIresponseHandler - the response handlerpublic HttpClientRequest post(String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClientpost in interface HttpClienthost - the hostrequestURI - the relative URIresponseHandler - the response handlerpublic HttpClientRequest post(String requestURI)
HttpClientpost in interface HttpClientrequestURI - the relative URIpublic HttpClientRequest post(String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClientpost in interface HttpClientrequestURI - the relative URIresponseHandler - the response handlerpublic HttpClientRequest postAbs(String absoluteURI)
HttpClientpostAbs in interface HttpClientabsoluteURI - the absolute URIpublic HttpClientRequest postAbs(String absoluteURI, Handler<HttpClientResponse> responseHandler)
HttpClientpostAbs in interface HttpClientabsoluteURI - the absolute URIresponseHandler - the response handlerpublic HttpClientRequest head(RequestOptions options)
HttpClienthead in interface HttpClientoptions - the request optionspublic HttpClientRequest head(int port, String host, String requestURI)
HttpClienthead in interface HttpClientport - the porthost - the hostrequestURI - the relative URIpublic HttpClientRequest head(String host, String requestURI)
HttpClienthead in interface HttpClienthost - the hostrequestURI - the relative URIpublic HttpClientRequest head(RequestOptions options, Handler<HttpClientResponse> responseHandler)
HttpClienthead in interface HttpClientoptions - the request optionsresponseHandler - the response handlerpublic HttpClientRequest head(int port, String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClienthead in interface HttpClientport - the porthost - the hostrequestURI - the relative URIresponseHandler - the response handlerpublic HttpClientRequest head(String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClienthead in interface HttpClienthost - the hostrequestURI - the relative URIresponseHandler - the response handlerpublic HttpClientRequest head(String requestURI)
HttpClienthead in interface HttpClientrequestURI - the relative URIpublic HttpClientRequest head(String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClienthead in interface HttpClientrequestURI - the relative URIresponseHandler - the response handlerpublic HttpClientRequest headAbs(String absoluteURI)
HttpClientheadAbs in interface HttpClientabsoluteURI - the absolute URIpublic HttpClientRequest headAbs(String absoluteURI, Handler<HttpClientResponse> responseHandler)
HttpClientheadAbs in interface HttpClientabsoluteURI - the absolute URIresponseHandler - the response handlerpublic HttpClient headNow(RequestOptions options, Handler<HttpClientResponse> responseHandler)
HttpClientheadNow in interface HttpClientoptions - the request optionsresponseHandler - the response handlerpublic HttpClient headNow(int port, String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClientheadNow in interface HttpClientport - the porthost - the hostrequestURI - the relative URIresponseHandler - the response handlerpublic HttpClient headNow(String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClientheadNow in interface HttpClienthost - the hostrequestURI - the relative URIresponseHandler - the response handlerpublic HttpClient headNow(String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClientheadNow in interface HttpClientrequestURI - the relative URIresponseHandler - the response handlerpublic HttpClientRequest options(RequestOptions options)
HttpClientoptions in interface HttpClientoptions - the request optionspublic HttpClientRequest options(int port, String host, String requestURI)
HttpClientoptions in interface HttpClientport - the porthost - the hostrequestURI - the relative URIpublic HttpClientRequest options(String host, String requestURI)
HttpClientoptions in interface HttpClienthost - the hostrequestURI - the relative URIpublic HttpClientRequest options(RequestOptions options, Handler<HttpClientResponse> responseHandler)
HttpClientoptions in interface HttpClientoptions - the request optionsresponseHandler - the response handlerpublic HttpClientRequest options(int port, String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClientoptions in interface HttpClientport - the porthost - the hostrequestURI - the relative URIresponseHandler - the response handlerpublic HttpClientRequest options(String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClientoptions in interface HttpClienthost - the hostrequestURI - the relative URIresponseHandler - the response handlerpublic HttpClientRequest options(String requestURI)
HttpClientoptions in interface HttpClientrequestURI - the relative URIpublic HttpClientRequest options(String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClientoptions in interface HttpClientrequestURI - the relative URIresponseHandler - the response handlerpublic HttpClientRequest optionsAbs(String absoluteURI)
HttpClientoptionsAbs in interface HttpClientabsoluteURI - the absolute URIpublic HttpClientRequest optionsAbs(String absoluteURI, Handler<HttpClientResponse> responseHandler)
HttpClientoptionsAbs in interface HttpClientabsoluteURI - the absolute URIresponseHandler - the response handlerpublic HttpClient optionsNow(RequestOptions options, Handler<HttpClientResponse> responseHandler)
HttpClientoptionsNow in interface HttpClientoptions - the request optionsresponseHandler - the response handlerpublic HttpClient optionsNow(int port, String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClientoptionsNow in interface HttpClientport - the porthost - the hostrequestURI - the relative URIresponseHandler - the response handlerpublic HttpClient optionsNow(String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClientoptionsNow in interface HttpClienthost - the hostrequestURI - the relative URIresponseHandler - the response handlerpublic HttpClient optionsNow(String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClientoptionsNow in interface HttpClientrequestURI - the relative URIresponseHandler - the response handlerpublic HttpClientRequest put(RequestOptions options)
HttpClientput in interface HttpClientoptions - the request optionspublic HttpClientRequest put(int port, String host, String requestURI)
HttpClientput in interface HttpClientport - the porthost - the hostrequestURI - the relative URIpublic HttpClientRequest put(String host, String requestURI)
HttpClientput in interface HttpClienthost - the hostrequestURI - the relative URIpublic HttpClientRequest put(RequestOptions options, Handler<HttpClientResponse> responseHandler)
HttpClientput in interface HttpClientoptions - the request optionsresponseHandler - the response handlerpublic HttpClientRequest put(int port, String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClientput in interface HttpClientport - the porthost - the hostrequestURI - the relative URIresponseHandler - the response handlerpublic HttpClientRequest put(String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClientput in interface HttpClienthost - the hostrequestURI - the relative URIresponseHandler - the response handlerpublic HttpClientRequest put(String requestURI)
HttpClientput in interface HttpClientrequestURI - the relative URIpublic HttpClientRequest put(String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClientput in interface HttpClientrequestURI - the relative URIresponseHandler - the response handlerpublic HttpClientRequest putAbs(String absoluteURI)
HttpClientputAbs in interface HttpClientabsoluteURI - the absolute URIpublic HttpClientRequest putAbs(String absoluteURI, Handler<HttpClientResponse> responseHandler)
HttpClientputAbs in interface HttpClientabsoluteURI - the absolute URIresponseHandler - the response handlerpublic HttpClientRequest delete(RequestOptions options)
HttpClientdelete in interface HttpClientoptions - the request optionspublic HttpClientRequest delete(int port, String host, String requestURI)
HttpClientdelete in interface HttpClientport - the porthost - the hostrequestURI - the relative URIpublic HttpClientRequest delete(String host, String requestURI)
HttpClientdelete in interface HttpClienthost - the hostrequestURI - the relative URIpublic HttpClientRequest delete(RequestOptions options, Handler<HttpClientResponse> responseHandler)
HttpClientdelete in interface HttpClientoptions - the request optionsresponseHandler - the response handlerpublic HttpClientRequest delete(int port, String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClientdelete in interface HttpClientport - the porthost - the hostrequestURI - the relative URIresponseHandler - the response handlerpublic HttpClientRequest delete(String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClientdelete in interface HttpClienthost - the hostrequestURI - the relative URIresponseHandler - the response handlerpublic HttpClientRequest delete(String requestURI)
HttpClientdelete in interface HttpClientrequestURI - the relative URIpublic HttpClientRequest delete(String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClientdelete in interface HttpClientrequestURI - the relative URIresponseHandler - the response handlerpublic HttpClientRequest deleteAbs(String absoluteURI)
HttpClientdeleteAbs in interface HttpClientabsoluteURI - the absolute URIpublic HttpClientRequest deleteAbs(String absoluteURI, Handler<HttpClientResponse> responseHandler)
HttpClientdeleteAbs in interface HttpClientabsoluteURI - the absolute URIresponseHandler - the response handlerpublic void close()
HttpClientclose in interface HttpClientpublic boolean isMetricsEnabled()
MeasuredisMetricsEnabled in interface Measuredtrue if metrics are enabledpublic Metrics getMetrics()
MetricsProvidergetMetrics in interface MetricsProviderpublic HttpClient connectionHandler(Handler<HttpConnection> handler)
HttpClientconnectionHandler in interface HttpClientpublic HttpClient redirectHandler(Function<HttpClientResponse,Future<HttpClientRequest>> handler)
HttpClient
The redirect handler is called when a 3xx response is received and the request is configured to
follow redirects with HttpClientRequest.setFollowRedirects(boolean).
The redirect handler is passed the HttpClientResponse, it can return an HttpClientRequest or null.
Future<HttpClientRequest> is returned, the client will send this new request
The handler must return a Future<HttpClientRequest> unsent so the client can further configure it and send it.
redirectHandler in interface HttpClienthandler - the new redirect handlerpublic Function<HttpClientResponse,Future<HttpClientRequest>> redirectHandler()
redirectHandler in interface HttpClientpublic HttpClientOptions getOptions()
public VertxInternal getVertx()
Copyright © 2020. All rights reserved.