@groovy.transform.CompileStatic class HttpClient extends java.lang.Object
An asynchronous HTTP client.
It allows you to make requests to HTTP servers, and a single client can make requests to any server.
It also allows you to open WebSockets to servers.
The client can also pool HTTP connections.
For pooling to occur, keep-alive must be true on the HttpClientOptions (default is true). In this case connections will be pooled and re-used if there are pending HTTP requests waiting to get a connection, otherwise they will be closed.
This gives the benefits of keep alive when the client is loaded but means we don't keep connections hanging around unnecessarily when there would be no benefits anyway.
The client also supports pipe-lining of requests. Pipe-lining means another request is sent on the same connection before the response from the preceding one has returned. Pipe-lining is not appropriate for all requests.
To enable pipe-lining, it must be enabled on the HttpClientOptions (default is false).
When pipe-lining is enabled the connection will be automatically closed when all in-flight responses have returned and there are no outstanding pending requests to write.
The client is designed to be reused between requests.
Constructor and description |
---|
HttpClient
(java.lang.Object delegate) |
Type | Name and description |
---|---|
void |
close() Close the client. |
HttpClientRequest |
delete(int port, java.lang.String host, java.lang.String requestURI) Create an HTTP DELETE request to send to the server at the specified host and port. |
HttpClientRequest |
delete(java.lang.String host, java.lang.String requestURI) Create an HTTP DELETE request to send to the server at the specified host and default port. |
HttpClientRequest |
delete(int port, java.lang.String host, java.lang.String requestURI, io.vertx.core.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(java.lang.String host, java.lang.String requestURI, io.vertx.core.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 |
delete(java.lang.String requestURI) Create an HTTP DELETE request to send to the server at the default host and port. |
HttpClientRequest |
delete(java.lang.String requestURI, io.vertx.core.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 |
deleteAbs(java.lang.String absoluteURI) Create an HTTP DELETE request to send to the server using an absolute URI |
HttpClientRequest |
deleteAbs(java.lang.String absoluteURI, io.vertx.core.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 |
HttpClientRequest |
get(int port, java.lang.String host, java.lang.String requestURI) Create an HTTP GET request to send to the server at the specified host and port. |
HttpClientRequest |
get(java.lang.String host, java.lang.String requestURI) Create an HTTP GET request to send to the server at the specified host and default port. |
HttpClientRequest |
get(int port, java.lang.String host, java.lang.String requestURI, io.vertx.core.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(java.lang.String host, java.lang.String requestURI, io.vertx.core.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 |
get(java.lang.String requestURI) Create an HTTP GET request to send to the server at the default host and port. |
HttpClientRequest |
get(java.lang.String requestURI, io.vertx.core.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 |
getAbs(java.lang.String absoluteURI) Create an HTTP GET request to send to the server using an absolute URI |
HttpClientRequest |
getAbs(java.lang.String absoluteURI, io.vertx.core.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 |
java.lang.Object |
getDelegate() |
HttpClient |
getNow(int port, java.lang.String host, java.lang.String requestURI, io.vertx.core.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(java.lang.String host, java.lang.String requestURI, io.vertx.core.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 |
HttpClient |
getNow(java.lang.String requestURI, io.vertx.core.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 |
HttpClientRequest |
head(int port, java.lang.String host, java.lang.String requestURI) Create an HTTP HEAD request to send to the server at the specified host and port. |
HttpClientRequest |
head(java.lang.String host, java.lang.String requestURI) Create an HTTP HEAD request to send to the server at the specified host and default port. |
HttpClientRequest |
head(int port, java.lang.String host, java.lang.String requestURI, io.vertx.core.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(java.lang.String host, java.lang.String requestURI, io.vertx.core.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 |
head(java.lang.String requestURI) Create an HTTP HEAD request to send to the server at the default host and port. |
HttpClientRequest |
head(java.lang.String requestURI, io.vertx.core.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 |
headAbs(java.lang.String absoluteURI) Create an HTTP HEAD request to send to the server using an absolute URI |
HttpClientRequest |
headAbs(java.lang.String absoluteURI, io.vertx.core.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, java.lang.String host, java.lang.String requestURI, io.vertx.core.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(java.lang.String host, java.lang.String requestURI, io.vertx.core.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 |
HttpClient |
headNow(java.lang.String requestURI, io.vertx.core.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 |
boolean |
isMetricsEnabled() Whether the metrics are enabled for this measured object |
HttpClientRequest |
options(int port, java.lang.String host, java.lang.String requestURI) Create an HTTP OPTIONS request to send to the server at the specified host and port. |
HttpClientRequest |
options(java.lang.String host, java.lang.String requestURI) Create an HTTP OPTIONS request to send to the server at the specified host and default port. |
HttpClientRequest |
options(int port, java.lang.String host, java.lang.String requestURI, io.vertx.core.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(java.lang.String host, java.lang.String requestURI, io.vertx.core.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 |
options(java.lang.String requestURI) Create an HTTP OPTIONS request to send to the server at the default host and port. |
HttpClientRequest |
options(java.lang.String requestURI, io.vertx.core.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 |
optionsAbs(java.lang.String absoluteURI) Create an HTTP OPTIONS request to send to the server using an absolute URI |
HttpClientRequest |
optionsAbs(java.lang.String absoluteURI, io.vertx.core.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, java.lang.String host, java.lang.String requestURI, io.vertx.core.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(java.lang.String host, java.lang.String requestURI, io.vertx.core.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 |
HttpClient |
optionsNow(java.lang.String requestURI, io.vertx.core.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 |
HttpClientRequest |
post(int port, java.lang.String host, java.lang.String requestURI) Create an HTTP POST request to send to the server at the specified host and port. |
HttpClientRequest |
post(java.lang.String host, java.lang.String requestURI) Create an HTTP POST request to send to the server at the specified host and default port. |
HttpClientRequest |
post(int port, java.lang.String host, java.lang.String requestURI, io.vertx.core.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(java.lang.String host, java.lang.String requestURI, io.vertx.core.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 |
post(java.lang.String requestURI) Create an HTTP POST request to send to the server at the default host and port. |
HttpClientRequest |
post(java.lang.String requestURI, io.vertx.core.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 |
postAbs(java.lang.String absoluteURI) Create an HTTP POST request to send to the server using an absolute URI |
HttpClientRequest |
postAbs(java.lang.String absoluteURI, io.vertx.core.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, java.lang.String host, java.lang.String requestURI) Create an HTTP PUT request to send to the server at the specified host and port. |
HttpClientRequest |
put(java.lang.String host, java.lang.String requestURI) Create an HTTP PUT request to send to the server at the specified host and default port. |
HttpClientRequest |
put(int port, java.lang.String host, java.lang.String requestURI, io.vertx.core.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(java.lang.String host, java.lang.String requestURI, io.vertx.core.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 |
put(java.lang.String requestURI) Create an HTTP PUT request to send to the server at the default host and port. |
HttpClientRequest |
put(java.lang.String requestURI, io.vertx.core.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 |
putAbs(java.lang.String absoluteURI) Create an HTTP PUT request to send to the server using an absolute URI |
HttpClientRequest |
putAbs(java.lang.String absoluteURI, io.vertx.core.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 |
HttpClientRequest |
request(io.vertx.core.http.HttpMethod method, int port, java.lang.String host, java.lang.String requestURI) Create an HTTP request to send to the server at the specified host and port. |
HttpClientRequest |
request(io.vertx.core.http.HttpMethod method, java.lang.String host, java.lang.String requestURI) Create an HTTP request to send to the server at the specified host and default port. |
HttpClientRequest |
request(io.vertx.core.http.HttpMethod method, int port, java.lang.String host, java.lang.String requestURI, io.vertx.core.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(io.vertx.core.http.HttpMethod method, java.lang.String host, java.lang.String requestURI, io.vertx.core.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 |
request(io.vertx.core.http.HttpMethod method, java.lang.String requestURI) Create an HTTP request to send to the server at the default host and port. |
HttpClientRequest |
request(io.vertx.core.http.HttpMethod method, java.lang.String requestURI, io.vertx.core.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 |
requestAbs(io.vertx.core.http.HttpMethod method, java.lang.String absoluteURI) Create an HTTP request to send to the server using an absolute URI |
HttpClientRequest |
requestAbs(io.vertx.core.http.HttpMethod method, java.lang.String absoluteURI, io.vertx.core.Handler<HttpClientResponse> responseHandler) Create an HTTP request to send to the server using an absolute URI, specifying a response handler to receive the response |
HttpClient |
websocket(int port, java.lang.String host, java.lang.String requestURI, io.vertx.core.Handler<WebSocket> wsConnect) Connect a WebSocket to the specified port, host and relative request URI |
HttpClient |
websocket(int port, java.lang.String host, java.lang.String requestURI, io.vertx.core.Handler<WebSocket> wsConnect, io.vertx.core.Handler<java.lang.Throwable> failureHandler) Connect a WebSocket to the specified port, host and relative request URI |
HttpClient |
websocket(java.lang.String host, java.lang.String requestURI, io.vertx.core.Handler<WebSocket> wsConnect) Connect a WebSocket to the host and relative request URI and default port |
HttpClient |
websocket(java.lang.String host, java.lang.String requestURI, io.vertx.core.Handler<WebSocket> wsConnect, io.vertx.core.Handler<java.lang.Throwable> failureHandler) Connect a WebSocket to the host and relative request URI and default port |
HttpClient |
websocket(int port, java.lang.String host, java.lang.String requestURI, MultiMap headers, io.vertx.core.Handler<WebSocket> wsConnect) Connect a WebSocket to the specified port, host and relative request URI, and with the specified headers |
HttpClient |
websocket(int port, java.lang.String host, java.lang.String requestURI, MultiMap headers, io.vertx.core.Handler<WebSocket> wsConnect, io.vertx.core.Handler<java.lang.Throwable> failureHandler) Connect a WebSocket to the specified port, host and relative request URI, and with the specified headers |
HttpClient |
websocket(java.lang.String host, java.lang.String requestURI, MultiMap headers, io.vertx.core.Handler<WebSocket> wsConnect) Connect a WebSocket to the specified host,relative request UR, and default port and with the specified headers |
HttpClient |
websocket(java.lang.String host, java.lang.String requestURI, MultiMap headers, io.vertx.core.Handler<WebSocket> wsConnect, io.vertx.core.Handler<java.lang.Throwable> failureHandler) Connect a WebSocket to the specified host,relative request UR, and default port and with the specified headers |
HttpClient |
websocket(int port, java.lang.String host, java.lang.String requestURI, MultiMap headers, io.vertx.core.http.WebsocketVersion version, io.vertx.core.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, java.lang.String host, java.lang.String requestURI, MultiMap headers, io.vertx.core.http.WebsocketVersion version, io.vertx.core.Handler<WebSocket> wsConnect, io.vertx.core.Handler<java.lang.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(java.lang.String host, java.lang.String requestURI, MultiMap headers, io.vertx.core.http.WebsocketVersion version, io.vertx.core.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(java.lang.String host, java.lang.String requestURI, MultiMap headers, io.vertx.core.http.WebsocketVersion version, io.vertx.core.Handler<WebSocket> wsConnect, io.vertx.core.Handler<java.lang.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(int port, java.lang.String host, java.lang.String requestURI, MultiMap headers, io.vertx.core.http.WebsocketVersion version, java.lang.String subProtocols, io.vertx.core.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, java.lang.String host, java.lang.String requestURI, MultiMap headers, io.vertx.core.http.WebsocketVersion version, java.lang.String subProtocols, io.vertx.core.Handler<WebSocket> wsConnect, io.vertx.core.Handler<java.lang.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(java.lang.String host, java.lang.String requestURI, MultiMap headers, io.vertx.core.http.WebsocketVersion version, java.lang.String subProtocols, io.vertx.core.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(java.lang.String host, java.lang.String requestURI, MultiMap headers, io.vertx.core.http.WebsocketVersion version, java.lang.String subProtocols, io.vertx.core.Handler<WebSocket> wsConnect, io.vertx.core.Handler<java.lang.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 |
HttpClient |
websocket(java.lang.String requestURI, io.vertx.core.Handler<WebSocket> wsConnect) Connect a WebSocket at the relative request URI using the default host and port |
HttpClient |
websocket(java.lang.String requestURI, io.vertx.core.Handler<WebSocket> wsConnect, io.vertx.core.Handler<java.lang.Throwable> failureHandler) Connect a WebSocket at the relative request URI using the default host and port |
HttpClient |
websocket(java.lang.String requestURI, MultiMap headers, io.vertx.core.Handler<WebSocket> wsConnect) Connect a WebSocket at the relative request URI using the default host and port and the specified headers |
HttpClient |
websocket(java.lang.String requestURI, MultiMap headers, io.vertx.core.Handler<WebSocket> wsConnect, io.vertx.core.Handler<java.lang.Throwable> failureHandler) Connect a WebSocket at the relative request URI using the default host and port and the specified headers |
HttpClient |
websocket(java.lang.String requestURI, MultiMap headers, io.vertx.core.http.WebsocketVersion version, io.vertx.core.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(java.lang.String requestURI, MultiMap headers, io.vertx.core.http.WebsocketVersion version, io.vertx.core.Handler<WebSocket> wsConnect, io.vertx.core.Handler<java.lang.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(java.lang.String requestURI, MultiMap headers, io.vertx.core.http.WebsocketVersion version, java.lang.String subProtocols, io.vertx.core.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(java.lang.String requestURI, MultiMap headers, io.vertx.core.http.WebsocketVersion version, java.lang.String subProtocols, io.vertx.core.Handler<WebSocket> wsConnect, io.vertx.core.Handler<java.lang.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 |
WebSocketStream |
websocketStream(int port, java.lang.String host, java.lang.String requestURI) Create a WebSocket stream to the specified port, host and relative request URI |
WebSocketStream |
websocketStream(java.lang.String host, java.lang.String requestURI) Create a WebSocket stream to the specified host, relative request URI and default port |
WebSocketStream |
websocketStream(int port, java.lang.String host, java.lang.String requestURI, MultiMap headers) Create a WebSocket stream to the specified port, host and relative request URI, and with the specified headers |
WebSocketStream |
websocketStream(java.lang.String host, java.lang.String requestURI, MultiMap headers) Create a WebSocket stream to the specified host, relative request URI and default port and with the specified headers |
WebSocketStream |
websocketStream(int port, java.lang.String host, java.lang.String requestURI, MultiMap headers, io.vertx.core.http.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 |
WebSocketStream |
websocketStream(java.lang.String host, java.lang.String requestURI, MultiMap headers, io.vertx.core.http.WebsocketVersion version) Create a WebSocket stream to the specified host, relative request URI and default port and with the specified headers and using the specified version of WebSockets |
WebSocketStream |
websocketStream(int port, java.lang.String host, java.lang.String requestURI, MultiMap headers, io.vertx.core.http.WebsocketVersion version, java.lang.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 |
WebSocketStream |
websocketStream(java.lang.String host, java.lang.String requestURI, MultiMap headers, io.vertx.core.http.WebsocketVersion version, java.lang.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 |
WebSocketStream |
websocketStream(java.lang.String requestURI) Create a WebSocket stream at the relative request URI using the default host and port and the specified headers |
WebSocketStream |
websocketStream(java.lang.String requestURI, MultiMap headers) Create a WebSocket stream at the relative request URI using the default host and port and the specified headers |
WebSocketStream |
websocketStream(java.lang.String requestURI, MultiMap headers, io.vertx.core.http.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 |
WebSocketStream |
websocketStream(java.lang.String requestURI, MultiMap headers, io.vertx.core.http.WebsocketVersion version, java.lang.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 |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Close the client. Closing will close down any pooled connections. Clients should always be closed after use.
Create an HTTP DELETE request to send to the server at the specified host and port.
port
- the porthost
- the hostrequestURI
- the relative URICreate an HTTP DELETE request to send to the server at the specified host and default port.
host
- the hostrequestURI
- the relative URICreate an HTTP DELETE request to send to the server at the specified host and port, specifying a response handler to receive the response
port
- the porthost
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerCreate an HTTP DELETE request to send to the server at the specified host and default port, specifying a response handler to receive the response
host
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerCreate an HTTP DELETE request to send to the server at the default host and port.
requestURI
- the relative URICreate an HTTP DELETE request to send to the server at the default host and port, specifying a response handler to receive the response
requestURI
- the relative URIresponseHandler
- the response handlerCreate an HTTP DELETE request to send to the server using an absolute URI
absoluteURI
- the absolute URICreate an HTTP DELETE request to send to the server using an absolute URI, specifying a response handler to receive the response
absoluteURI
- the absolute URIresponseHandler
- the response handlerCreate an HTTP GET request to send to the server at the specified host and port.
port
- the porthost
- the hostrequestURI
- the relative URICreate an HTTP GET request to send to the server at the specified host and default port.
host
- the hostrequestURI
- the relative URICreate an HTTP GET request to send to the server at the specified host and port, specifying a response handler to receive the response
port
- the porthost
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerCreate an HTTP GET request to send to the server at the specified host and default port, specifying a response handler to receive the response
host
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerCreate an HTTP GET request to send to the server at the default host and port.
requestURI
- the relative URICreate an HTTP GET request to send to the server at the default host and port, specifying a response handler to receive the response
requestURI
- the relative URIresponseHandler
- the response handlerCreate an HTTP GET request to send to the server using an absolute URI
absoluteURI
- the absolute URICreate an HTTP GET request to send to the server using an absolute URI, specifying a response handler to receive the response
absoluteURI
- the absolute URIresponseHandler
- the response handlerSends an HTTP GET request to the server at the specified host and port, specifying a response handler to receive the response
port
- the porthost
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerSends an HTTP GET request to the server at the specified host and default port, specifying a response handler to receive the response
host
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerSends an HTTP GET request to the server at the default host and port, specifying a response handler to receive the response
requestURI
- the relative URIresponseHandler
- the response handlerCreate an HTTP HEAD request to send to the server at the specified host and port.
port
- the porthost
- the hostrequestURI
- the relative URICreate an HTTP HEAD request to send to the server at the specified host and default port.
host
- the hostrequestURI
- the relative URICreate an HTTP HEAD request to send to the server at the specified host and port, specifying a response handler to receive the response
port
- the porthost
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerCreate an HTTP HEAD request to send to the server at the specified host and default port, specifying a response handler to receive the response
host
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerCreate an HTTP HEAD request to send to the server at the default host and port.
requestURI
- the relative URICreate an HTTP HEAD request to send to the server at the default host and port, specifying a response handler to receive the response
requestURI
- the relative URIresponseHandler
- the response handlerCreate an HTTP HEAD request to send to the server using an absolute URI
absoluteURI
- the absolute URICreate an HTTP HEAD request to send to the server using an absolute URI, specifying a response handler to receive the response
absoluteURI
- the absolute URIresponseHandler
- the response handlerSends an HTTP HEAD request to the server at the specified host and port, specifying a response handler to receive the response
port
- the porthost
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerSends an HTTP HEAD request to the server at the specified host and default port, specifying a response handler to receive the response
host
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerSends an HTTP HEAD request to the server at the default host and port, specifying a response handler to receive the response
requestURI
- the relative URIresponseHandler
- the response handlerWhether the metrics are enabled for this measured object
Create an HTTP OPTIONS request to send to the server at the specified host and port.
port
- the porthost
- the hostrequestURI
- the relative URICreate an HTTP OPTIONS request to send to the server at the specified host and default port.
host
- the hostrequestURI
- the relative URICreate an HTTP OPTIONS request to send to the server at the specified host and port, specifying a response handler to receive the response
port
- the porthost
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerCreate an HTTP OPTIONS request to send to the server at the specified host and default port, specifying a response handler to receive the response
host
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerCreate an HTTP OPTIONS request to send to the server at the default host and port.
requestURI
- the relative URICreate an HTTP OPTIONS request to send to the server at the default host and port, specifying a response handler to receive the response
requestURI
- the relative URIresponseHandler
- the response handlerCreate an HTTP OPTIONS request to send to the server using an absolute URI
absoluteURI
- the absolute URICreate an HTTP OPTIONS request to send to the server using an absolute URI, specifying a response handler to receive the response
absoluteURI
- the absolute URIresponseHandler
- the response handlerSends an HTTP OPTIONS request to the server at the specified host and port, specifying a response handler to receive the response
port
- the porthost
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerSends an HTTP OPTIONS request to the server at the specified host and default port, specifying a response handler to receive the response
host
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerSends an HTTP OPTIONS request to the server at the default host and port, specifying a response handler to receive the response
requestURI
- the relative URIresponseHandler
- the response handlerCreate an HTTP POST request to send to the server at the specified host and port.
port
- the porthost
- the hostrequestURI
- the relative URICreate an HTTP POST request to send to the server at the specified host and default port.
host
- the hostrequestURI
- the relative URICreate an HTTP POST request to send to the server at the specified host and port, specifying a response handler to receive the response
port
- the porthost
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerCreate an HTTP POST request to send to the server at the specified host and default port, specifying a response handler to receive the response
host
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerCreate an HTTP POST request to send to the server at the default host and port.
requestURI
- the relative URICreate an HTTP POST request to send to the server at the default host and port, specifying a response handler to receive the response
requestURI
- the relative URIresponseHandler
- the response handlerCreate an HTTP POST request to send to the server using an absolute URI
absoluteURI
- the absolute URICreate an HTTP POST request to send to the server using an absolute URI, specifying a response handler to receive the response
absoluteURI
- the absolute URIresponseHandler
- the response handlerCreate an HTTP PUT request to send to the server at the specified host and port.
port
- the porthost
- the hostrequestURI
- the relative URICreate an HTTP PUT request to send to the server at the specified host and default port.
host
- the hostrequestURI
- the relative URICreate an HTTP PUT request to send to the server at the specified host and port, specifying a response handler to receive the response
port
- the porthost
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerCreate an HTTP PUT request to send to the server at the specified host and default port, specifying a response handler to receive the response
host
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerCreate an HTTP PUT request to send to the server at the default host and port.
requestURI
- the relative URICreate an HTTP PUT request to send to the server at the default host and port, specifying a response handler to receive the response
requestURI
- the relative URIresponseHandler
- the response handlerCreate an HTTP PUT request to send to the server using an absolute URI
absoluteURI
- the absolute URICreate an HTTP PUT request to send to the server using an absolute URI, specifying a response handler to receive the response
absoluteURI
- the absolute URIresponseHandler
- the response handlerCreate an HTTP request to send to the server at the specified host and port.
method
- the HTTP methodport
- the porthost
- the hostrequestURI
- the relative URICreate an HTTP request to send to the server at the specified host and default port.
method
- the HTTP methodhost
- the hostrequestURI
- the relative URICreate an HTTP request to send to the server at the specified host and port, specifying a response handler to receive the response
method
- the HTTP methodport
- the porthost
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerCreate an HTTP request to send to the server at the specified host and default port, specifying a response handler to receive the response
method
- the HTTP methodhost
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerCreate an HTTP request to send to the server at the default host and port.
method
- the HTTP methodrequestURI
- the relative URICreate an HTTP request to send to the server at the default host and port, specifying a response handler to receive the response
method
- the HTTP methodrequestURI
- the relative URIresponseHandler
- the response handlerCreate an HTTP request to send to the server using an absolute URI
method
- the HTTP methodabsoluteURI
- the absolute URICreate an HTTP request to send to the server using an absolute URI, specifying a response handler to receive the response
method
- the HTTP methodabsoluteURI
- the absolute URIresponseHandler
- the response handlerConnect a WebSocket to the specified port, host and relative request URI
port
- the porthost
- the hostrequestURI
- the relative URIwsConnect
- handler that will be called with the websocket when connectedConnect a WebSocket to the specified port, host and relative request URI
port
- 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 failsConnect a WebSocket to the host and relative request URI and default port
host
- the hostrequestURI
- the relative URIwsConnect
- handler that will be called with the websocket when connectedConnect a WebSocket to the host and relative request URI and default port
host
- the hostrequestURI
- the relative URIwsConnect
- handler that will be called with the websocket when connectedfailureHandler
- handler that will be called if websocket connection failsConnect a WebSocket to the specified port, host and relative request URI, and with the specified headers
port
- the porthost
- the hostrequestURI
- the relative URIheaders
- the headerswsConnect
- handler that will be called with the websocket when connectedConnect a WebSocket to the specified port, host and relative request URI, and with the specified headers
port
- 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 failsConnect a WebSocket to the specified host,relative request UR, and default port and with the specified headers
host
- the hostrequestURI
- the relative URIheaders
- the headerswsConnect
- handler that will be called with the websocket when connectedConnect a WebSocket to the specified host,relative request UR, and default port and with the specified headers
host
- 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 failsConnect a WebSocket to the specified port, host and relative request URI, with the specified headers and using the specified version of WebSockets
port
- the porthost
- the hostrequestURI
- the relative URIheaders
- the headersversion
- the websocket versionwsConnect
- handler that will be called with the websocket when connectedConnect a WebSocket to the specified port, host and relative request URI, with the specified headers and using the specified version of WebSockets
port
- 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 failsConnect a WebSocket to the specified host, relative request URI and default port with the specified headers and using the specified version of WebSockets
host
- the hostrequestURI
- the relative URIheaders
- the headersversion
- the websocket versionwsConnect
- handler that will be called with the websocket when connectedConnect a WebSocket to the specified host, relative request URI and default port with the specified headers and using the specified version of WebSockets
host
- 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 failsConnect 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
port
- 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 connectedConnect 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
port
- 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 failsConnect 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
host
- the hostrequestURI
- the relative URIheaders
- the headersversion
- the websocket versionsubProtocols
- the subprotocols to usewsConnect
- handler that will be called with the websocket when connectedConnect 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
host
- 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 failsConnect a WebSocket at the relative request URI using the default host and port
requestURI
- the relative URIwsConnect
- handler that will be called with the websocket when connectedConnect a WebSocket at the relative request URI using the default host and port
requestURI
- the relative URIwsConnect
- handler that will be called with the websocket when connectedfailureHandler
- handler that will be called if websocket connection failsConnect a WebSocket at the relative request URI using the default host and port and the specified headers
requestURI
- the relative URIheaders
- the headerswsConnect
- handler that will be called with the websocket when connectedConnect a WebSocket at the relative request URI using the default host and port and the specified headers
requestURI
- the relative URIheaders
- the headerswsConnect
- handler that will be called with the websocket when connectedfailureHandler
- handler that will be called if websocket connection failsConnect a WebSocket at the relative request URI using the default host and port, the specified headers and the specified version of WebSockets
requestURI
- the relative URIheaders
- the headersversion
- the websocket versionwsConnect
- handler that will be called with the websocket when connectedConnect a WebSocket at the relative request URI using the default host and port, the specified headers and the specified version of WebSockets
requestURI
- 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 failsConnect 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
requestURI
- the relative URIheaders
- the headersversion
- the websocket versionsubProtocols
- the subprotocolswsConnect
- handler that will be called with the websocket when connectedConnect 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
requestURI
- 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 failsCreate a WebSocket stream to the specified port, host and relative request URI
port
- the porthost
- the hostrequestURI
- the relative URICreate a WebSocket stream to the specified host, relative request URI and default port
host
- the hostrequestURI
- the relative URICreate a WebSocket stream to the specified port, host and relative request URI, and with the specified headers
port
- the porthost
- the hostrequestURI
- the relative URIheaders
- the headersCreate a WebSocket stream to the specified host, relative request URI and default port and with the specified headers
host
- the hostrequestURI
- the relative URIheaders
- the headersCreate a WebSocket stream to the specified port, host and relative request URI, with the specified headers and using the specified version of WebSockets
port
- the porthost
- the hostrequestURI
- the relative URIheaders
- the headersversion
- the websocket versionCreate a WebSocket stream to the specified host, relative request URI and default port and with the specified headers and using the specified version of WebSockets
host
- the hostrequestURI
- the relative URIheaders
- the headersversion
- the websocket versionCreate 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
port
- the porthost
- the hostrequestURI
- the relative URIheaders
- the headersversion
- the websocket versionsubProtocols
- the subprotocols to useCreate 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
host
- the hostrequestURI
- the relative URIheaders
- the headersversion
- the websocket versionsubProtocols
- the subprotocols to useCreate a WebSocket stream at the relative request URI using the default host and port and the specified headers
requestURI
- the relative URICreate a WebSocket stream at the relative request URI using the default host and port and the specified headers
requestURI
- the relative URIheaders
- the headersCreate a WebSocket stream at the relative request URI using the default host and port, the specified headers and the specified version of WebSockets
requestURI
- the relative URIheaders
- the headersversion
- the websocket versionCreate 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
requestURI
- the relative URIheaders
- the headersversion
- the websocket versionsubProtocols
- the subprotocols