| Modifier and Type | Method and Description |
|---|---|
HttpMethod |
HttpClientRequest.method()
The HTTP method for the request.
|
HttpMethod |
HttpServerRequest.method() |
static HttpMethod |
HttpMethod.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpMethod[] |
HttpMethod.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
default Future<HttpServerResponse> |
HttpServerResponse.push(HttpMethod method,
String path)
Same as
HttpServerResponse.push(HttpMethod, String, Handler) but with an handler called when the operation completes |
HttpServerResponse |
HttpServerResponse.push(HttpMethod method,
String path,
Handler<AsyncResult<HttpServerResponse>> handler)
Like
HttpServerResponse.push(HttpMethod, String, String, MultiMap, Handler) with the host copied from the current request. |
default Future<HttpServerResponse> |
HttpServerResponse.push(HttpMethod method,
String path,
MultiMap headers)
Same as
HttpServerResponse.push(HttpMethod, String, MultiMap, Handler) but with an handler called when the operation completes |
HttpServerResponse |
HttpServerResponse.push(HttpMethod method,
String path,
MultiMap headers,
Handler<AsyncResult<HttpServerResponse>> handler)
Like
HttpServerResponse.push(HttpMethod, String, String, MultiMap, Handler) with the host copied from the current request. |
default Future<HttpServerResponse> |
HttpServerResponse.push(HttpMethod method,
String host,
String path)
Same as
HttpServerResponse.push(HttpMethod, String, String, Handler) but with an handler called when the operation completes |
HttpServerResponse |
HttpServerResponse.push(HttpMethod method,
String host,
String path,
Handler<AsyncResult<HttpServerResponse>> handler)
Like
HttpServerResponse.push(HttpMethod, String, String, MultiMap, Handler) with no headers. |
default Future<HttpServerResponse> |
HttpServerResponse.push(HttpMethod method,
String host,
String path,
MultiMap headers)
Same as
HttpServerResponse.push(HttpMethod, String, String, MultiMap, Handler) but with an handler called when the operation completes |
HttpServerResponse |
HttpServerResponse.push(HttpMethod method,
String host,
String path,
MultiMap headers,
Handler<AsyncResult<HttpServerResponse>> handler)
Push a response to the client.
The
handler will be notified with a success when the push can be sent and with
a failure when the client has disabled push or reset the push before it has been sent.
The handler may be queued if the client has reduced the maximum number of streams the server can push
concurrently.
Push can be sent only for peer initiated streams and if the response is not ended. |
HttpClientRequest |
HttpClient.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 |
HttpClient.request(HttpMethod method,
int port,
String host,
String requestURI,
Handler<AsyncResult<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,
RequestOptions options)
Create an HTTP request to send to the server with the specified options.
|
HttpClientRequest |
HttpClient.request(HttpMethod method,
RequestOptions options,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Create an HTTP request to send to the server with the specified options, specifying a response handler to receive
|
HttpClientRequest |
HttpClient.request(HttpMethod method,
SocketAddress serverAddress,
int port,
String host,
String requestURI)
Like
HttpClient.request(HttpMethod, int, String, String) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter. |
HttpClientRequest |
HttpClient.request(HttpMethod method,
SocketAddress serverAddress,
int port,
String host,
String requestURI,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Like
HttpClient.request(HttpMethod, int, String, String, Handler) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter. |
HttpClientRequest |
HttpClient.request(HttpMethod method,
SocketAddress serverAddress,
RequestOptions options)
Like
HttpClient.request(HttpMethod, RequestOptions) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter. |
HttpClientRequest |
HttpClient.request(HttpMethod method,
SocketAddress serverAddress,
RequestOptions options,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Like
HttpClient.request(HttpMethod, RequestOptions, Handler) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter. |
HttpClientRequest |
HttpClient.request(HttpMethod method,
String requestURI)
Create an HTTP request to send to the server at the default host and port.
|
HttpClientRequest |
HttpClient.request(HttpMethod method,
String requestURI,
Handler<AsyncResult<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)
Create an HTTP request to send to the server at the specified host and default port.
|
HttpClientRequest |
HttpClient.request(HttpMethod method,
String host,
String requestURI,
Handler<AsyncResult<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,
SocketAddress serverAddress,
String absoluteURI)
Like
HttpClient.requestAbs(HttpMethod, String) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter. |
HttpClientRequest |
HttpClient.requestAbs(HttpMethod method,
SocketAddress serverAddress,
String absoluteURI,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Like
HttpClient.requestAbs(HttpMethod, String, Handler) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter. |
HttpClientRequest |
HttpClient.requestAbs(HttpMethod method,
String absoluteURI)
Create an HTTP request to send to the server using an absolute URI
|
HttpClientRequest |
HttpClient.requestAbs(HttpMethod method,
String absoluteURI,
Handler<AsyncResult<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 | Method and Description |
|---|---|
default R |
HttpServerMetrics.responsePushed(S socketMetric,
HttpMethod method,
String uri,
HttpServerResponse response)
Called when an http server response is pushed.
|
| Modifier and Type | Method and Description |
|---|---|
default Future<OAuth2Response> |
AccessToken.fetch(HttpMethod method,
String resource,
JsonObject headers,
Buffer payload)
Fetches a JSON resource using this Access Token.
|
AccessToken |
AccessToken.fetch(HttpMethod method,
String resource,
JsonObject headers,
Buffer payload,
Handler<AsyncResult<OAuth2Response>> callback)
Fetches a JSON resource using this Access Token.
|
| Modifier and Type | Method and Description |
|---|---|
Set<HttpMethod> |
Route.methods() |
| Modifier and Type | Method and Description |
|---|---|
Route |
Route.method(HttpMethod method)
Add an HTTP method for this route.
|
void |
RoutingContext.reroute(HttpMethod method,
String path)
Restarts the current router with a new method and path.
|
Route |
Router.route(HttpMethod method,
String path)
Add a route that matches the specified HTTP method and path
|
Route |
Router.routeWithRegex(HttpMethod method,
String regex)
Add a route that matches the specified HTTP method and path regex
|
| Modifier and Type | Method and Description |
|---|---|
HttpRequest<T> |
HttpRequest.method(HttpMethod value)
Configure the request to use a new method
value. |
HttpRequest<Buffer> |
WebClient.request(HttpMethod method,
int port,
String host,
String requestURI)
Create an HTTP request to send to the server at the specified host and port.
|
HttpRequest<Buffer> |
WebClient.request(HttpMethod method,
RequestOptions options)
Create an HTTP request to send to the server at the specified host and port.
|
HttpRequest<Buffer> |
WebClient.request(HttpMethod method,
SocketAddress serverAddress,
int port,
String host,
String requestURI)
Like
WebClient.request(HttpMethod, int, String, String) using the serverAddress parameter to connect to the
server instead of the port and host parameters. |
HttpRequest<Buffer> |
WebClient.request(HttpMethod method,
SocketAddress serverAddress,
RequestOptions options)
Like
WebClient.request(HttpMethod, RequestOptions) using the serverAddress parameter to connect to the
server instead of the options parameter. |
HttpRequest<Buffer> |
WebClient.request(HttpMethod method,
SocketAddress serverAddress,
String requestURI)
Like
WebClient.request(HttpMethod, String) using the serverAddress parameter to connect to the
server instead of the default port and default host. |
HttpRequest<Buffer> |
WebClient.request(HttpMethod method,
SocketAddress serverAddress,
String host,
String requestURI)
Like
WebClient.request(HttpMethod, String, String) using the serverAddress parameter to connect to the
server instead of the default port and host parameter. |
HttpRequest<Buffer> |
WebClient.request(HttpMethod method,
String requestURI)
Create an HTTP request to send to the server at the default host and port.
|
HttpRequest<Buffer> |
WebClient.request(HttpMethod method,
String host,
String requestURI)
Create an HTTP request to send to the server at the specified host and default port.
|
HttpRequest<Buffer> |
WebClient.requestAbs(HttpMethod method,
SocketAddress serverAddress,
String absoluteURI)
Like
WebClient.requestAbs(HttpMethod, String) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter. |
HttpRequest<Buffer> |
WebClient.requestAbs(HttpMethod method,
String absoluteURI)
Create an HTTP request to send to the server using an absolute URI
|
| Modifier and Type | Method and Description |
|---|---|
CorsHandler |
CorsHandler.allowedMethod(HttpMethod method)
Add an allowed method
|
| Modifier and Type | Method and Description |
|---|---|
CorsHandler |
CorsHandler.allowedMethods(Set<HttpMethod> methods)
Add a set of allowed methods
|
| Modifier and Type | Method and Description |
|---|---|
static TestRequest |
TestRequest.testRequest(WebClient client,
HttpMethod method,
String path)
Creates a new
TestRequest object with provided client, method and path |
| Modifier and Type | Method and Description |
|---|---|
HttpMethod |
HttpClientRequest.method()
The HTTP method for the request.
|
HttpMethod |
HttpServerRequest.method() |
| Modifier and Type | Method and Description |
|---|---|
HttpServerResponse |
HttpServerResponse.push(HttpMethod method,
String path)
Like
HttpServerResponse.push(io.vertx.core.http.HttpMethod, java.lang.String, java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.reactivex.core.http.HttpServerResponse>>) with the host copied from the current request. |
HttpServerResponse |
HttpServerResponse.push(HttpMethod method,
String path,
Handler<AsyncResult<HttpServerResponse>> handler)
Like
HttpServerResponse.push(io.vertx.core.http.HttpMethod, java.lang.String, java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.reactivex.core.http.HttpServerResponse>>) with the host copied from the current request. |
HttpServerResponse |
HttpServerResponse.push(HttpMethod method,
String path,
MultiMap headers)
Like
HttpServerResponse.push(io.vertx.core.http.HttpMethod, java.lang.String, java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.reactivex.core.http.HttpServerResponse>>) with the host copied from the current request. |
HttpServerResponse |
HttpServerResponse.push(HttpMethod method,
String path,
MultiMap headers,
Handler<AsyncResult<HttpServerResponse>> handler)
Like
HttpServerResponse.push(io.vertx.core.http.HttpMethod, java.lang.String, java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.reactivex.core.http.HttpServerResponse>>) with the host copied from the current request. |
HttpServerResponse |
HttpServerResponse.push(HttpMethod method,
String host,
String path)
|
HttpServerResponse |
HttpServerResponse.push(HttpMethod method,
String host,
String path,
Handler<AsyncResult<HttpServerResponse>> handler)
|
HttpServerResponse |
HttpServerResponse.push(HttpMethod method,
String host,
String path,
MultiMap headers)
Push a response to the client.
The
handler will be notified with a success when the push can be sent and with
a failure when the client has disabled push or reset the push before it has been sent.
The handler may be queued if the client has reduced the maximum number of streams the server can push
concurrently.
Push can be sent only for peer initiated streams and if the response is not ended. |
HttpServerResponse |
HttpServerResponse.push(HttpMethod method,
String host,
String path,
MultiMap headers,
Handler<AsyncResult<HttpServerResponse>> handler)
Push a response to the client.
The
handler will be notified with a success when the push can be sent and with
a failure when the client has disabled push or reset the push before it has been sent.
The handler may be queued if the client has reduced the maximum number of streams the server can push
concurrently.
Push can be sent only for peer initiated streams and if the response is not ended. |
HttpClientRequest |
HttpClient.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 |
HttpClient.request(HttpMethod method,
int port,
String host,
String requestURI,
Handler<AsyncResult<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,
RequestOptions options)
Create an HTTP request to send to the server with the specified options.
|
HttpClientRequest |
HttpClient.request(HttpMethod method,
RequestOptions options,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Create an HTTP request to send to the server with the specified options, specifying a response handler to receive
|
HttpClientRequest |
HttpClient.request(HttpMethod method,
SocketAddress serverAddress,
int port,
String host,
String requestURI)
Like
HttpClient.request(io.vertx.core.http.HttpMethod, io.vertx.reactivex.core.net.SocketAddress, io.vertx.core.http.RequestOptions) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter. |
HttpClientRequest |
HttpClient.request(HttpMethod method,
SocketAddress serverAddress,
int port,
String host,
String requestURI,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Like
HttpClient.request(io.vertx.core.http.HttpMethod, io.vertx.reactivex.core.net.SocketAddress, io.vertx.core.http.RequestOptions) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter. |
HttpClientRequest |
HttpClient.request(HttpMethod method,
SocketAddress serverAddress,
RequestOptions options)
Like
HttpClient.request(io.vertx.core.http.HttpMethod, io.vertx.reactivex.core.net.SocketAddress, io.vertx.core.http.RequestOptions) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter. |
HttpClientRequest |
HttpClient.request(HttpMethod method,
SocketAddress serverAddress,
RequestOptions options,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Like
HttpClient.request(io.vertx.core.http.HttpMethod, io.vertx.reactivex.core.net.SocketAddress, io.vertx.core.http.RequestOptions) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter. |
HttpClientRequest |
HttpClient.request(HttpMethod method,
String requestURI)
Create an HTTP request to send to the server at the default host and port.
|
HttpClientRequest |
HttpClient.request(HttpMethod method,
String requestURI,
Handler<AsyncResult<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)
Create an HTTP request to send to the server at the specified host and default port.
|
HttpClientRequest |
HttpClient.request(HttpMethod method,
String host,
String requestURI,
Handler<AsyncResult<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,
SocketAddress serverAddress,
String absoluteURI)
Like
HttpClient.requestAbs(io.vertx.core.http.HttpMethod, java.lang.String) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter. |
HttpClientRequest |
HttpClient.requestAbs(HttpMethod method,
SocketAddress serverAddress,
String absoluteURI,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Like
HttpClient.requestAbs(io.vertx.core.http.HttpMethod, java.lang.String) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter. |
HttpClientRequest |
HttpClient.requestAbs(HttpMethod method,
String absoluteURI)
Create an HTTP request to send to the server using an absolute URI
|
HttpClientRequest |
HttpClient.requestAbs(HttpMethod method,
String absoluteURI,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Create an HTTP request to send to the server using an absolute URI, specifying a response handler to receive
the response
|
Single<HttpServerResponse> |
HttpServerResponse.rxPush(HttpMethod method,
String path)
Like
HttpServerResponse.push(io.vertx.core.http.HttpMethod, java.lang.String, java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.reactivex.core.http.HttpServerResponse>>) with the host copied from the current request. |
Single<HttpServerResponse> |
HttpServerResponse.rxPush(HttpMethod method,
String path,
MultiMap headers)
Like
HttpServerResponse.push(io.vertx.core.http.HttpMethod, java.lang.String, java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.reactivex.core.http.HttpServerResponse>>) with the host copied from the current request. |
Single<HttpServerResponse> |
HttpServerResponse.rxPush(HttpMethod method,
String host,
String path)
|
Single<HttpServerResponse> |
HttpServerResponse.rxPush(HttpMethod method,
String host,
String path,
MultiMap headers)
Push a response to the client.
The
handler will be notified with a success when the push can be sent and with
a failure when the client has disabled push or reset the push before it has been sent.
The handler may be queued if the client has reduced the maximum number of streams the server can push
concurrently.
Push can be sent only for peer initiated streams and if the response is not ended. |
| Modifier and Type | Method and Description |
|---|---|
AccessToken |
AccessToken.fetch(HttpMethod method,
String resource,
JsonObject headers,
Buffer payload)
Fetches a JSON resource using this Access Token.
|
AccessToken |
AccessToken.fetch(HttpMethod method,
String resource,
JsonObject headers,
Buffer payload,
Handler<AsyncResult<OAuth2Response>> callback)
Fetches a JSON resource using this Access Token.
|
Single<OAuth2Response> |
AccessToken.rxFetch(HttpMethod method,
String resource,
JsonObject headers,
Buffer payload)
Fetches a JSON resource using this Access Token.
|
| Modifier and Type | Method and Description |
|---|---|
Set<HttpMethod> |
Route.methods() |
| Modifier and Type | Method and Description |
|---|---|
Route |
Route.method(HttpMethod method)
Add an HTTP method for this route.
|
void |
RoutingContext.reroute(HttpMethod method,
String path)
Restarts the current router with a new method and path.
|
Route |
Router.route(HttpMethod method,
String path)
Add a route that matches the specified HTTP method and path
|
Route |
Router.routeWithRegex(HttpMethod method,
String regex)
Add a route that matches the specified HTTP method and path regex
|
| Modifier and Type | Method and Description |
|---|---|
HttpRequest<T> |
HttpRequest.method(HttpMethod value)
Configure the request to use a new method
value. |
HttpRequest<Buffer> |
WebClient.request(HttpMethod method,
int port,
String host,
String requestURI)
Create an HTTP request to send to the server at the specified host and port.
|
HttpRequest<Buffer> |
WebClient.request(HttpMethod method,
RequestOptions options)
Create an HTTP request to send to the server at the specified host and port.
|
HttpRequest<Buffer> |
WebClient.request(HttpMethod method,
SocketAddress serverAddress,
int port,
String host,
String requestURI)
Like
WebClient.request(io.vertx.core.http.HttpMethod, int, java.lang.String, java.lang.String) using the serverAddress parameter to connect to the
server instead of the port and host parameters. |
HttpRequest<Buffer> |
WebClient.request(HttpMethod method,
SocketAddress serverAddress,
RequestOptions options)
Like
WebClient.request(io.vertx.core.http.HttpMethod, int, java.lang.String, java.lang.String) using the serverAddress parameter to connect to the
server instead of the options parameter. |
HttpRequest<Buffer> |
WebClient.request(HttpMethod method,
SocketAddress serverAddress,
String requestURI)
Like
WebClient.request(io.vertx.core.http.HttpMethod, int, java.lang.String, java.lang.String) using the serverAddress parameter to connect to the
server instead of the default port and default host. |
HttpRequest<Buffer> |
WebClient.request(HttpMethod method,
SocketAddress serverAddress,
String host,
String requestURI)
Like
WebClient.request(io.vertx.core.http.HttpMethod, int, java.lang.String, java.lang.String) using the serverAddress parameter to connect to the
server instead of the default port and host parameter. |
HttpRequest<Buffer> |
WebClient.request(HttpMethod method,
String requestURI)
Create an HTTP request to send to the server at the default host and port.
|
HttpRequest<Buffer> |
WebClient.request(HttpMethod method,
String host,
String requestURI)
Create an HTTP request to send to the server at the specified host and default port.
|
HttpRequest<Buffer> |
WebClient.requestAbs(HttpMethod method,
SocketAddress serverAddress,
String absoluteURI)
Like
WebClient.requestAbs(io.vertx.core.http.HttpMethod, java.lang.String) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter. |
HttpRequest<Buffer> |
WebClient.requestAbs(HttpMethod method,
String absoluteURI)
Create an HTTP request to send to the server using an absolute URI
|
| Modifier and Type | Method and Description |
|---|---|
CorsHandler |
CorsHandler.allowedMethod(HttpMethod method)
Add an allowed method
|
| Modifier and Type | Method and Description |
|---|---|
CorsHandler |
CorsHandler.allowedMethods(Set<HttpMethod> methods)
Add a set of allowed methods
|
| Modifier and Type | Method and Description |
|---|---|
HttpMethod |
HttpClientRequest.method()
The HTTP method for the request.
|
HttpMethod |
HttpServerRequest.method() |
| Modifier and Type | Method and Description |
|---|---|
HttpServerResponse |
HttpServerResponse.push(HttpMethod method,
String path)
Like
HttpServerResponse.push(io.vertx.core.http.HttpMethod, java.lang.String, java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.rxjava.core.http.HttpServerResponse>>) with the host copied from the current request. |
HttpServerResponse |
HttpServerResponse.push(HttpMethod method,
String path,
Handler<AsyncResult<HttpServerResponse>> handler)
Like
HttpServerResponse.push(io.vertx.core.http.HttpMethod, java.lang.String, java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.rxjava.core.http.HttpServerResponse>>) with the host copied from the current request. |
HttpServerResponse |
HttpServerResponse.push(HttpMethod method,
String path,
MultiMap headers)
Like
HttpServerResponse.push(io.vertx.core.http.HttpMethod, java.lang.String, java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.rxjava.core.http.HttpServerResponse>>) with the host copied from the current request. |
HttpServerResponse |
HttpServerResponse.push(HttpMethod method,
String path,
MultiMap headers,
Handler<AsyncResult<HttpServerResponse>> handler)
Like
HttpServerResponse.push(io.vertx.core.http.HttpMethod, java.lang.String, java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.rxjava.core.http.HttpServerResponse>>) with the host copied from the current request. |
HttpServerResponse |
HttpServerResponse.push(HttpMethod method,
String host,
String path)
|
HttpServerResponse |
HttpServerResponse.push(HttpMethod method,
String host,
String path,
Handler<AsyncResult<HttpServerResponse>> handler)
|
HttpServerResponse |
HttpServerResponse.push(HttpMethod method,
String host,
String path,
MultiMap headers)
Push a response to the client.
The
handler will be notified with a success when the push can be sent and with
a failure when the client has disabled push or reset the push before it has been sent.
The handler may be queued if the client has reduced the maximum number of streams the server can push
concurrently.
Push can be sent only for peer initiated streams and if the response is not ended. |
HttpServerResponse |
HttpServerResponse.push(HttpMethod method,
String host,
String path,
MultiMap headers,
Handler<AsyncResult<HttpServerResponse>> handler)
Push a response to the client.
The
handler will be notified with a success when the push can be sent and with
a failure when the client has disabled push or reset the push before it has been sent.
The handler may be queued if the client has reduced the maximum number of streams the server can push
concurrently.
Push can be sent only for peer initiated streams and if the response is not ended. |
HttpClientRequest |
HttpClient.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 |
HttpClient.request(HttpMethod method,
int port,
String host,
String requestURI,
Handler<AsyncResult<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,
RequestOptions options)
Create an HTTP request to send to the server with the specified options.
|
HttpClientRequest |
HttpClient.request(HttpMethod method,
RequestOptions options,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Create an HTTP request to send to the server with the specified options, specifying a response handler to receive
|
HttpClientRequest |
HttpClient.request(HttpMethod method,
SocketAddress serverAddress,
int port,
String host,
String requestURI)
Like
HttpClient.request(io.vertx.core.http.HttpMethod, io.vertx.rxjava.core.net.SocketAddress, io.vertx.core.http.RequestOptions) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter. |
HttpClientRequest |
HttpClient.request(HttpMethod method,
SocketAddress serverAddress,
int port,
String host,
String requestURI,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Like
HttpClient.request(io.vertx.core.http.HttpMethod, io.vertx.rxjava.core.net.SocketAddress, io.vertx.core.http.RequestOptions) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter. |
HttpClientRequest |
HttpClient.request(HttpMethod method,
SocketAddress serverAddress,
RequestOptions options)
Like
HttpClient.request(io.vertx.core.http.HttpMethod, io.vertx.rxjava.core.net.SocketAddress, io.vertx.core.http.RequestOptions) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter. |
HttpClientRequest |
HttpClient.request(HttpMethod method,
SocketAddress serverAddress,
RequestOptions options,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Like
HttpClient.request(io.vertx.core.http.HttpMethod, io.vertx.rxjava.core.net.SocketAddress, io.vertx.core.http.RequestOptions) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter. |
HttpClientRequest |
HttpClient.request(HttpMethod method,
String requestURI)
Create an HTTP request to send to the server at the default host and port.
|
HttpClientRequest |
HttpClient.request(HttpMethod method,
String requestURI,
Handler<AsyncResult<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)
Create an HTTP request to send to the server at the specified host and default port.
|
HttpClientRequest |
HttpClient.request(HttpMethod method,
String host,
String requestURI,
Handler<AsyncResult<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,
SocketAddress serverAddress,
String absoluteURI)
Like
HttpClient.requestAbs(io.vertx.core.http.HttpMethod, java.lang.String) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter. |
HttpClientRequest |
HttpClient.requestAbs(HttpMethod method,
SocketAddress serverAddress,
String absoluteURI,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Like
HttpClient.requestAbs(io.vertx.core.http.HttpMethod, java.lang.String) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter. |
HttpClientRequest |
HttpClient.requestAbs(HttpMethod method,
String absoluteURI)
Create an HTTP request to send to the server using an absolute URI
|
HttpClientRequest |
HttpClient.requestAbs(HttpMethod method,
String absoluteURI,
Handler<AsyncResult<HttpClientResponse>> responseHandler)
Create an HTTP request to send to the server using an absolute URI, specifying a response handler to receive
the response
|
Single<HttpServerResponse> |
HttpServerResponse.rxPush(HttpMethod method,
String path)
Like
HttpServerResponse.push(io.vertx.core.http.HttpMethod, java.lang.String, java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.rxjava.core.http.HttpServerResponse>>) with the host copied from the current request. |
Single<HttpServerResponse> |
HttpServerResponse.rxPush(HttpMethod method,
String path,
MultiMap headers)
Like
HttpServerResponse.push(io.vertx.core.http.HttpMethod, java.lang.String, java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.rxjava.core.http.HttpServerResponse>>) with the host copied from the current request. |
Single<HttpServerResponse> |
HttpServerResponse.rxPush(HttpMethod method,
String host,
String path)
|
Single<HttpServerResponse> |
HttpServerResponse.rxPush(HttpMethod method,
String host,
String path,
MultiMap headers)
Push a response to the client.
The
handler will be notified with a success when the push can be sent and with
a failure when the client has disabled push or reset the push before it has been sent.
The handler may be queued if the client has reduced the maximum number of streams the server can push
concurrently.
Push can be sent only for peer initiated streams and if the response is not ended. |
| Modifier and Type | Method and Description |
|---|---|
AccessToken |
AccessToken.fetch(HttpMethod method,
String resource,
JsonObject headers,
Buffer payload)
Fetches a JSON resource using this Access Token.
|
AccessToken |
AccessToken.fetch(HttpMethod method,
String resource,
JsonObject headers,
Buffer payload,
Handler<AsyncResult<OAuth2Response>> callback)
Fetches a JSON resource using this Access Token.
|
Single<OAuth2Response> |
AccessToken.rxFetch(HttpMethod method,
String resource,
JsonObject headers,
Buffer payload)
Fetches a JSON resource using this Access Token.
|
| Modifier and Type | Method and Description |
|---|---|
Set<HttpMethod> |
Route.methods() |
| Modifier and Type | Method and Description |
|---|---|
Route |
Route.method(HttpMethod method)
Add an HTTP method for this route.
|
void |
RoutingContext.reroute(HttpMethod method,
String path)
Restarts the current router with a new method and path.
|
Route |
Router.route(HttpMethod method,
String path)
Add a route that matches the specified HTTP method and path
|
Route |
Router.routeWithRegex(HttpMethod method,
String regex)
Add a route that matches the specified HTTP method and path regex
|
| Modifier and Type | Method and Description |
|---|---|
HttpRequest<T> |
HttpRequest.method(HttpMethod value)
Configure the request to use a new method
value. |
HttpRequest<Buffer> |
WebClient.request(HttpMethod method,
int port,
String host,
String requestURI)
Create an HTTP request to send to the server at the specified host and port.
|
HttpRequest<Buffer> |
WebClient.request(HttpMethod method,
RequestOptions options)
Create an HTTP request to send to the server at the specified host and port.
|
HttpRequest<Buffer> |
WebClient.request(HttpMethod method,
SocketAddress serverAddress,
int port,
String host,
String requestURI)
Like
WebClient.request(io.vertx.core.http.HttpMethod, int, java.lang.String, java.lang.String) using the serverAddress parameter to connect to the
server instead of the port and host parameters. |
HttpRequest<Buffer> |
WebClient.request(HttpMethod method,
SocketAddress serverAddress,
RequestOptions options)
Like
WebClient.request(io.vertx.core.http.HttpMethod, int, java.lang.String, java.lang.String) using the serverAddress parameter to connect to the
server instead of the options parameter. |
HttpRequest<Buffer> |
WebClient.request(HttpMethod method,
SocketAddress serverAddress,
String requestURI)
Like
WebClient.request(io.vertx.core.http.HttpMethod, int, java.lang.String, java.lang.String) using the serverAddress parameter to connect to the
server instead of the default port and default host. |
HttpRequest<Buffer> |
WebClient.request(HttpMethod method,
SocketAddress serverAddress,
String host,
String requestURI)
Like
WebClient.request(io.vertx.core.http.HttpMethod, int, java.lang.String, java.lang.String) using the serverAddress parameter to connect to the
server instead of the default port and host parameter. |
HttpRequest<Buffer> |
WebClient.request(HttpMethod method,
String requestURI)
Create an HTTP request to send to the server at the default host and port.
|
HttpRequest<Buffer> |
WebClient.request(HttpMethod method,
String host,
String requestURI)
Create an HTTP request to send to the server at the specified host and default port.
|
HttpRequest<Buffer> |
WebClient.requestAbs(HttpMethod method,
SocketAddress serverAddress,
String absoluteURI)
Like
WebClient.requestAbs(io.vertx.core.http.HttpMethod, java.lang.String) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter. |
HttpRequest<Buffer> |
WebClient.requestAbs(HttpMethod method,
String absoluteURI)
Create an HTTP request to send to the server using an absolute URI
|
| Modifier and Type | Method and Description |
|---|---|
CorsHandler |
CorsHandler.allowedMethod(HttpMethod method)
Add an allowed method
|
| Modifier and Type | Method and Description |
|---|---|
CorsHandler |
CorsHandler.allowedMethods(Set<HttpMethod> methods)
Add a set of allowed methods
|
Copyright © 2019 Eclipse. All rights reserved.