Package | Description |
---|---|
examples | |
io.vertx.core |
= Vert.x Core Manual
:toc: left
At the heart of Vert.x is a set of Java APIs that we call *Vert.x Core*
https://github.com/eclipse/vert.x[Repository].
|
io.vertx.core.http |
== Writing HTTP servers and clients
Vert.x allows you to easily write non blocking HTTP clients and servers.
|
io.vertx.core.http.impl | |
io.vertx.core.impl | |
io.vertx.core.metrics.impl | |
io.vertx.core.spi.metrics |
Modifier and Type | Method and Description |
---|---|
void |
HTTPExamples.example42(HttpClient client) |
void |
HTTPExamples.example43(HttpClient client) |
void |
HTTPExamples.example45(HttpClient client) |
void |
HTTPExamples.example47(HttpClient client) |
void |
HTTPExamples.example48(HttpClient client) |
void |
HTTPExamples.example49(HttpClient client) |
void |
HTTPExamples.example50(HttpClient client) |
void |
HTTPExamples.example54(HttpClient client) |
void |
HTTPExamples.statusCodeHandling(HttpClient client) |
Modifier and Type | Method and Description |
---|---|
HttpClient |
Vertx.createHttpClient()
Create a HTTP/HTTPS client using default options
|
HttpClient |
Vertx.createHttpClient(HttpClientOptions options)
Create a HTTP/HTTPS client using the specified options
|
Modifier and Type | Method and Description |
---|---|
HttpClient |
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 |
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 |
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
|
HttpClient |
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 |
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 |
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
|
HttpClient |
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 |
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 |
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
|
HttpClient |
HttpClient.websocket(int port,
String host,
String requestURI,
Handler<WebSocket> wsConnect)
Connect a WebSocket to the specified port, host and relative request URI
|
HttpClient |
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 |
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 |
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 |
HttpClient.websocket(String requestURI,
Handler<WebSocket> wsConnect)
Connect a WebSocket at the relative request URI using the default host and port
|
HttpClient |
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 |
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 |
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 |
HttpClient.websocket(String host,
String requestURI,
Handler<WebSocket> wsConnect)
Connect a WebSocket to the host and relative request URI and default port
|
HttpClient |
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 |
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 |
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
|
Modifier and Type | Class and Description |
---|---|
class |
HttpClientImpl
This class is thread-safe
|
Modifier and Type | Method and Description |
---|---|
HttpClient |
HttpClientImpl.getNow(int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler) |
HttpClient |
HttpClientImpl.getNow(String requestURI,
Handler<HttpClientResponse> responseHandler) |
HttpClient |
HttpClientImpl.getNow(String host,
String requestURI,
Handler<HttpClientResponse> responseHandler) |
HttpClient |
HttpClientImpl.headNow(int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler) |
HttpClient |
HttpClientImpl.headNow(String requestURI,
Handler<HttpClientResponse> responseHandler) |
HttpClient |
HttpClientImpl.headNow(String host,
String requestURI,
Handler<HttpClientResponse> responseHandler) |
HttpClient |
HttpClientImpl.optionsNow(int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler) |
HttpClient |
HttpClientImpl.optionsNow(String requestURI,
Handler<HttpClientResponse> responseHandler) |
HttpClient |
HttpClientImpl.optionsNow(String host,
String requestURI,
Handler<HttpClientResponse> responseHandler) |
HttpClient |
HttpClientImpl.websocket(int port,
String host,
String requestURI,
Handler<WebSocket> wsConnect) |
HttpClient |
HttpClientImpl.websocket(int port,
String host,
String requestURI,
MultiMap headers,
Handler<WebSocket> wsConnect) |
HttpClient |
HttpClientImpl.websocket(int port,
String host,
String requestURI,
MultiMap headers,
WebsocketVersion version,
Handler<WebSocket> wsConnect) |
HttpClient |
HttpClientImpl.websocket(int port,
String host,
String requestURI,
MultiMap headers,
WebsocketVersion version,
String subProtocols,
Handler<WebSocket> wsConnect) |
HttpClient |
HttpClientImpl.websocket(String requestURI,
Handler<WebSocket> wsConnect) |
HttpClient |
HttpClientImpl.websocket(String requestURI,
MultiMap headers,
Handler<WebSocket> wsConnect) |
HttpClient |
HttpClientImpl.websocket(String requestURI,
MultiMap headers,
WebsocketVersion version,
Handler<WebSocket> wsConnect) |
HttpClient |
HttpClientImpl.websocket(String requestURI,
MultiMap headers,
WebsocketVersion version,
String subProtocols,
Handler<WebSocket> wsConnect) |
HttpClient |
HttpClientImpl.websocket(String host,
String requestURI,
Handler<WebSocket> wsConnect) |
HttpClient |
HttpClientImpl.websocket(String host,
String requestURI,
MultiMap headers,
Handler<WebSocket> wsConnect) |
HttpClient |
HttpClientImpl.websocket(String host,
String requestURI,
MultiMap headers,
WebsocketVersion version,
Handler<WebSocket> wsConnect) |
HttpClient |
HttpClientImpl.websocket(String host,
String requestURI,
MultiMap headers,
WebsocketVersion version,
String subProtocols,
Handler<WebSocket> wsConnect) |
Modifier and Type | Method and Description |
---|---|
HttpClient |
VertxImpl.createHttpClient() |
HttpClient |
VertxImpl.createHttpClient(HttpClientOptions options) |
Modifier and Type | Method and Description |
---|---|
HttpClientMetrics |
DummyVertxMetrics.createMetrics(HttpClient client,
HttpClientOptions options) |
Modifier and Type | Method and Description |
---|---|
HttpClientMetrics<?,?,?> |
VertxMetrics.createMetrics(HttpClient client,
HttpClientOptions options)
Provides the http client metrics SPI when an http client has been created.
No specific thread and context can be expected when this method is called.
|
Copyright © 2015. All Rights Reserved.