Package | Description |
---|---|
io.vertx.core.http |
== Writing HTTP servers and clients
Vert.x allows you to easily write non blocking HTTP clients and servers.
|
Modifier and Type | Method and Description |
---|---|
RequestOptions |
RequestOptions.setHost(String host)
Set the host name to be used by the client request.
|
RequestOptions |
RequestOptions.setPort(int port)
Set the port to be used by the client request.
|
RequestOptions |
RequestOptions.setSsl(boolean ssl)
Set whether SSL/TLS is enabled
|
RequestOptions |
RequestOptions.setURI(String uri)
Set the request relative URI
|
Modifier and Type | Method and Description |
---|---|
HttpClientRequest |
HttpClient.delete(RequestOptions options)
Create an HTTP DELETE request to send to the server with the specified options.
|
HttpClientRequest |
HttpClient.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 |
HttpClient.get(RequestOptions options)
Create an HTTP GET request to send to the server with the specified options.
|
HttpClientRequest |
HttpClient.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
|
HttpClient |
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
|
HttpClientRequest |
HttpClient.head(RequestOptions options)
Create an HTTP HEAD request to send to the server with the specified options.
|
HttpClientRequest |
HttpClient.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
|
HttpClient |
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
|
HttpClientRequest |
HttpClient.options(RequestOptions options)
Create an HTTP OPTIONS request to send to the server with the specified options.
|
HttpClientRequest |
HttpClient.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
|
HttpClient |
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
|
HttpClientRequest |
HttpClient.post(RequestOptions options)
Create an HTTP POST request to send to the server with the specified options.
|
HttpClientRequest |
HttpClient.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 |
HttpClient.put(RequestOptions options)
Create an HTTP PUT request to send to the server with the specified options.
|
HttpClientRequest |
HttpClient.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 |
HttpClient.request(HttpMethod method,
RequestOptions options)
Create an HTTP request to send to the server with the specified options.
|
HttpClientRequest |
HttpClient.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
|
HttpClient |
HttpClient.websocket(RequestOptions options,
Handler<WebSocket> wsConnect)
Connect a WebSocket with the specified options
|
HttpClient |
HttpClient.websocket(RequestOptions options,
Handler<WebSocket> wsConnect,
Handler<Throwable> failureHandler)
Connect a WebSocket with the specified options
|
HttpClient |
HttpClient.websocket(RequestOptions options,
MultiMap headers,
Handler<WebSocket> wsConnect)
Connect a WebSocket with the specified options, and with the specified headers
|
HttpClient |
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 |
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 |
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 |
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 |
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
|
ReadStream<WebSocket> |
HttpClient.websocketStream(RequestOptions options)
Create a WebSocket stream with the specified options
|
ReadStream<WebSocket> |
HttpClient.websocketStream(RequestOptions options,
MultiMap headers)
Create a WebSocket stream with the specified options, and with the specified headers
|
ReadStream<WebSocket> |
HttpClient.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
|
ReadStream<WebSocket> |
HttpClient.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
|
Constructor and Description |
---|
RequestOptions(RequestOptions other)
Copy constructor
|
Copyright © 2018 Eclipse. All rights reserved.