Example usage for Java io.vertx.core.http HttpClient fields, constructors, methods, implement or subclass
The text is from its open source code.
void | close() Close the client. |
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(RequestOptions options, Handler 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, Handler 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(RequestOptions options) Create an HTTP GET request to send to the server with the specified options. |
HttpClientRequest | get(String requestURI) Create an HTTP GET request to send to the server at the default host and port. |
HttpClientRequest | getAbs(String absoluteURI) Create an HTTP GET request to send to the server using an absolute URI |
HttpClientRequest | getAbs(String absoluteURI, Handler Create an HTTP GET request to send to the server using an absolute URI, specifying a response handler to receive the response |
HttpClient | getNow(RequestOptions options, Handler Sends an HTTP GET request to the server with the specified options, specifying a response handler to receive the response |
Future | getNow(String host, String requestURI) Like #getNow(String,String,Handler) but returns a Future of the asynchronous result |
HttpClient | getNow(String requestURI, Handler Sends an HTTP GET request to the server at the default host and port, specifying a response handler to receive the response |
HttpClient | getNow(int port, String host, String requestURI, Handler Sends an HTTP GET request to the server at the specified host and port, specifying a response handler to receive the response |
HttpClient | headNow(RequestOptions options, Handler Sends an HTTP HEAD request to the server with the specified options, specifying a response handler to receive the response |
Future | headNow(String host, String requestURI) Like #headNow(String,String,Handler) but returns a Future of the asynchronous result |
HttpClient | headNow(String requestURI, Handler Sends an HTTP HEAD request to the server at the default 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(String requestURI) Create an HTTP POST request to send to the server at the default host and port. |
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(RequestOptions options, Handler 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, Handler 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(String absoluteURI) Create an HTTP POST request to send to the server using an absolute URI |
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(RequestOptions options, Handler 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, Handler Create an HTTP PUT request to send to the server at the default host and port, specifying a response handler to receive the response |
HttpClient | redirectHandler(Function Set a redirect handler for the http client. |
HttpClientRequest | request(HttpMethod method, SocketAddress serverAddress, RequestOptions options) Like #request(HttpMethod,RequestOptions) using the serverAddress parameter to connect to the server instead of the absoluteURI parameter. |
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, RequestOptions options, Handler Create an HTTP request to send to the server with the specified options, specifying a response handler to receive |
HttpClientRequest | request(HttpMethod method, String requestURI, Handler 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, SocketAddress serverAddress, int port, String host, String requestURI) Like #request(HttpMethod,int,String,String) using the serverAddress parameter to connect to the server instead of the absoluteURI parameter. |
HttpClientRequest | request(HttpMethod method, int port, String host, String requestURI, Handler 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, 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, SocketAddress serverAddress, RequestOptions options, Handler Like #request(HttpMethod,RequestOptions,Handler) using the serverAddress parameter to connect to the server instead of the absoluteURI parameter. |
HttpClientRequest | request(HttpMethod method, String host, String requestURI, Handler 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, String absoluteURI) Create an HTTP request to send to the server using an absolute URI |
Future | webSocket(String host, String requestURI) Like #webSocket(String,String,Handler) but returns a Future of the asynchronous result |
void | webSocket(String requestURI, Handler Connect a WebSocket at the relative request URI using the default host and port |
void | webSocket(WebSocketConnectOptions options, Handler Connect a WebSocket with the specified options. |
void | webSocket(int port, String host, String requestURI, Handler Connect a WebSocket to the specified port, host and relative request URI |