Package | Description |
---|---|
examples | |
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.metrics.impl | |
io.vertx.core.spi.metrics |
Modifier and Type | Method and Description |
---|---|
void |
HTTPExamples.example46(HttpClientResponse response) |
Modifier and Type | Method and Description |
---|---|
HttpClientResponse |
HttpClientResponse.bodyHandler(Handler<Buffer> bodyHandler)
Convenience method for receiving the entire request body in one piece.
|
HttpClientResponse |
HttpClientResponse.endHandler(Handler<Void> endHandler) |
HttpClientResponse |
HttpClientResponse.exceptionHandler(Handler<Throwable> handler) |
HttpClientResponse |
HttpClientResponse.handler(Handler<Buffer> handler) |
HttpClientResponse |
HttpClientResponse.pause() |
HttpClientResponse |
HttpClientResponse.resume() |
Modifier and Type | Method and Description |
---|---|
HttpClientRequest |
HttpClient.delete(int port,
String host,
String requestURI,
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 |
HttpClient.delete(String requestURI,
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 |
HttpClient.delete(String host,
String requestURI,
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 |
HttpClient.deleteAbs(String absoluteURI,
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 |
HttpClient.get(int port,
String host,
String requestURI,
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 |
HttpClient.get(String requestURI,
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 |
HttpClient.get(String host,
String requestURI,
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 |
HttpClient.getAbs(String absoluteURI,
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
|
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
|
HttpClientRequest |
HttpClientRequest.handler(Handler<HttpClientResponse> handler) |
HttpClientRequest |
HttpClient.head(int port,
String host,
String requestURI,
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 |
HttpClient.head(String requestURI,
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 |
HttpClient.head(String host,
String requestURI,
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 |
HttpClient.headAbs(String absoluteURI,
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 |
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
|
HttpClientRequest |
HttpClient.options(int port,
String host,
String requestURI,
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 |
HttpClient.options(String requestURI,
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 |
HttpClient.options(String host,
String requestURI,
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 |
HttpClient.optionsAbs(String absoluteURI,
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 |
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
|
HttpClientRequest |
HttpClient.post(int port,
String host,
String requestURI,
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 |
HttpClient.post(String requestURI,
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 |
HttpClient.post(String host,
String requestURI,
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 |
HttpClient.postAbs(String absoluteURI,
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 |
HttpClient.put(int port,
String host,
String requestURI,
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 |
HttpClient.put(String requestURI,
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 |
HttpClient.put(String host,
String requestURI,
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 |
HttpClient.putAbs(String absoluteURI,
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 |
HttpClient.request(HttpMethod method,
int port,
String host,
String requestURI,
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 |
HttpClient.request(HttpMethod method,
String requestURI,
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 |
HttpClient.request(HttpMethod method,
String host,
String requestURI,
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 |
HttpClient.requestAbs(HttpMethod method,
String absoluteURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP request to send to the server using an absolute URI, specifying a response handler to receive
the response
|
Modifier and Type | Class and Description |
---|---|
class |
HttpClientResponseImpl
This class is optimised for performance when used on the same event loop that is was passed to the handler with.
|
Modifier and Type | Method and Description |
---|---|
HttpClientResponse |
HttpClientResponseImpl.bodyHandler(Handler<Buffer> bodyHandler) |
HttpClientResponse |
HttpClientResponseImpl.endHandler(Handler<Void> endHandler) |
HttpClientResponse |
HttpClientResponseImpl.exceptionHandler(Handler<Throwable> exceptionHandler) |
HttpClientResponse |
HttpClientResponseImpl.handler(Handler<Buffer> dataHandler) |
HttpClientResponse |
HttpClientResponseImpl.pause() |
HttpClientResponse |
HttpClientResponseImpl.resume() |
Modifier and Type | Method and Description |
---|---|
HttpClientRequest |
HttpClientImpl.delete(int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler) |
HttpClientRequest |
HttpClientImpl.delete(String requestURI,
Handler<HttpClientResponse> responseHandler) |
HttpClientRequest |
HttpClientImpl.delete(String host,
String requestURI,
Handler<HttpClientResponse> responseHandler) |
HttpClientRequest |
HttpClientImpl.deleteAbs(String absoluteURI,
Handler<HttpClientResponse> responseHandler) |
HttpClientRequest |
HttpClientImpl.get(int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler) |
HttpClientRequest |
HttpClientImpl.get(String requestURI,
Handler<HttpClientResponse> responseHandler) |
HttpClientRequest |
HttpClientImpl.get(String host,
String requestURI,
Handler<HttpClientResponse> responseHandler) |
HttpClientRequest |
HttpClientImpl.getAbs(String absoluteURI,
Handler<HttpClientResponse> responseHandler) |
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) |
HttpClientRequest |
HttpClientRequestImpl.handler(Handler<HttpClientResponse> handler) |
HttpClientRequest |
HttpClientImpl.head(int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler) |
HttpClientRequest |
HttpClientImpl.head(String requestURI,
Handler<HttpClientResponse> responseHandler) |
HttpClientRequest |
HttpClientImpl.head(String host,
String requestURI,
Handler<HttpClientResponse> responseHandler) |
HttpClientRequest |
HttpClientImpl.headAbs(String absoluteURI,
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) |
HttpClientRequest |
HttpClientImpl.options(int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler) |
HttpClientRequest |
HttpClientImpl.options(String requestURI,
Handler<HttpClientResponse> responseHandler) |
HttpClientRequest |
HttpClientImpl.options(String host,
String requestURI,
Handler<HttpClientResponse> responseHandler) |
HttpClientRequest |
HttpClientImpl.optionsAbs(String absoluteURI,
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) |
HttpClientRequest |
HttpClientImpl.post(int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler) |
HttpClientRequest |
HttpClientImpl.post(String requestURI,
Handler<HttpClientResponse> responseHandler) |
HttpClientRequest |
HttpClientImpl.post(String host,
String requestURI,
Handler<HttpClientResponse> responseHandler) |
HttpClientRequest |
HttpClientImpl.postAbs(String absoluteURI,
Handler<HttpClientResponse> responseHandler) |
HttpClientRequest |
HttpClientImpl.put(int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler) |
HttpClientRequest |
HttpClientImpl.put(String requestURI,
Handler<HttpClientResponse> responseHandler) |
HttpClientRequest |
HttpClientImpl.put(String host,
String requestURI,
Handler<HttpClientResponse> responseHandler) |
HttpClientRequest |
HttpClientImpl.putAbs(String absoluteURI,
Handler<HttpClientResponse> responseHandler) |
HttpClientRequest |
HttpClientImpl.request(HttpMethod method,
int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler) |
HttpClientRequest |
HttpClientImpl.request(HttpMethod method,
String requestURI,
Handler<HttpClientResponse> responseHandler) |
HttpClientRequest |
HttpClientImpl.request(HttpMethod method,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler) |
HttpClientRequest |
HttpClientImpl.requestAbs(HttpMethod method,
String absoluteURI,
Handler<HttpClientResponse> responseHandler) |
Modifier and Type | Method and Description |
---|---|
void |
DummyVertxMetrics.DummyHttpClientMetrics.responseEnd(Void requestMetric,
HttpClientResponse response) |
Modifier and Type | Method and Description |
---|---|
void |
HttpClientMetrics.responseEnd(R requestMetric,
HttpClientResponse response)
Called when an http client response has ended
|
Copyright © 2015. All Rights Reserved.