Java io.vertx.core.http HttpClient fields, constructors, methods, implement or subclass

Example usage for Java io.vertx.core.http HttpClient fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for io.vertx.core.http HttpClient.

The text is from its open source code.

Method

voidclose()
Close the client.
HttpClientRequestget(String host, String requestURI)
Create an HTTP GET request to send to the server at the specified host and default port.
HttpClientRequestget(RequestOptions options, Handler> responseHandler)
Create an HTTP GET request to send to the server with the specified options, specifying a response handler to receive the response
HttpClientRequestget(String requestURI, Handler> 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
HttpClientRequestget(RequestOptions options)
Create an HTTP GET request to send to the server with the specified options.
HttpClientRequestget(String requestURI)
Create an HTTP GET request to send to the server at the default host and port.
HttpClientRequestgetAbs(String absoluteURI)
Create an HTTP GET request to send to the server using an absolute URI
HttpClientRequestgetAbs(String absoluteURI, Handler> responseHandler)
Create an HTTP GET request to send to the server using an absolute URI, specifying a response handler to receive the response
HttpClientgetNow(RequestOptions options, Handler> responseHandler)
Sends an HTTP GET request to the server with the specified options, specifying a response handler to receive the response
FuturegetNow(String host, String requestURI)
Like #getNow(String,String,Handler) but returns a Future of the asynchronous result
HttpClientgetNow(String requestURI, Handler> responseHandler)
Sends an HTTP GET request to the server at the default host and port, specifying a response handler to receive the response
HttpClientgetNow(int port, String host, String requestURI, Handler> responseHandler)
Sends an HTTP GET request to the server at the specified host and port, specifying a response handler to receive the response
HttpClientheadNow(RequestOptions options, Handler> responseHandler)
Sends an HTTP HEAD request to the server with the specified options, specifying a response handler to receive the response
FutureheadNow(String host, String requestURI)
Like #headNow(String,String,Handler) but returns a Future of the asynchronous result
HttpClientheadNow(String requestURI, Handler> responseHandler)
Sends an HTTP HEAD request to the server at the default host and port, specifying a response handler to receive the response
HttpClientRequestpost(RequestOptions options)
Create an HTTP POST request to send to the server with the specified options.
HttpClientRequestpost(String requestURI)
Create an HTTP POST request to send to the server at the default host and port.
HttpClientRequestpost(String host, String requestURI)
Create an HTTP POST request to send to the server at the specified host and default port.
HttpClientRequestpost(RequestOptions options, Handler> responseHandler)
Create an HTTP POST request to send to the server with the specified options, specifying a response handler to receive the response
HttpClientRequestpost(String requestURI, Handler> 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
HttpClientRequestpostAbs(String absoluteURI)
Create an HTTP POST request to send to the server using an absolute URI
HttpClientRequestput(String host, String requestURI)
Create an HTTP PUT request to send to the server at the specified host and default port.
HttpClientRequestput(RequestOptions options, Handler> responseHandler)
Create an HTTP PUT request to send to the server with the specified options, specifying a response handler to receive the response
HttpClientRequestput(String requestURI, Handler> 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
HttpClientredirectHandler(Function> handler)
Set a redirect handler for the http client.
HttpClientRequestrequest(HttpMethod method, SocketAddress serverAddress, RequestOptions options)
Like #request(HttpMethod,RequestOptions) using the serverAddress parameter to connect to the server instead of the absoluteURI parameter.
HttpClientRequestrequest(HttpMethod method, String host, String requestURI)
Create an HTTP request to send to the server at the specified host and default port.
HttpClientRequestrequest(HttpMethod method, RequestOptions options, Handler> responseHandler)
Create an HTTP request to send to the server with the specified options, specifying a response handler to receive
HttpClientRequestrequest(HttpMethod method, String requestURI, Handler> responseHandler)
Create an HTTP request to send to the server at the default host and port, specifying a response handler to receive the response
HttpClientRequestrequest(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.
HttpClientRequestrequest(HttpMethod method, int port, String host, String requestURI, Handler> responseHandler)
Create an HTTP request to send to the server at the specified host and port, specifying a response handler to receive the response
HttpClientRequestrequest(HttpMethod method, int port, String host, String requestURI)
Create an HTTP request to send to the server at the specified host and port.
HttpClientRequestrequest(HttpMethod method, SocketAddress serverAddress, RequestOptions options, Handler> responseHandler)
Like #request(HttpMethod,RequestOptions,Handler) using the serverAddress parameter to connect to the server instead of the absoluteURI parameter.
HttpClientRequestrequest(HttpMethod method, String host, String requestURI, Handler> 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
HttpClientRequestrequestAbs(HttpMethod method, String absoluteURI)
Create an HTTP request to send to the server using an absolute URI
FuturewebSocket(String host, String requestURI)
Like #webSocket(String,String,Handler) but returns a Future of the asynchronous result
voidwebSocket(String requestURI, Handler> handler)
Connect a WebSocket at the relative request URI using the default host and port
voidwebSocket(WebSocketConnectOptions options, Handler> handler)
Connect a WebSocket with the specified options.
voidwebSocket(int port, String host, String requestURI, Handler> handler)
Connect a WebSocket to the specified port, host and relative request URI