Package | Description |
---|---|
io.vertx.ext.web.client | |
io.vertx.ext.web.client.predicate | |
io.vertx.reactivex.ext.web.client | |
io.vertx.rxjava.ext.web.client | |
io.vertx.rxjava3.ext.web.client |
Modifier and Type | Method and Description |
---|---|
default Future<HttpResponse<T>> |
HttpRequest.send() |
default Future<HttpResponse<T>> |
HttpRequest.sendBuffer(Buffer body) |
default Future<HttpResponse<T>> |
HttpRequest.sendForm(MultiMap body) |
default Future<HttpResponse<T>> |
HttpRequest.sendForm(MultiMap body,
String charset) |
default Future<HttpResponse<T>> |
HttpRequest.sendJson(Object body) |
default Future<HttpResponse<T>> |
HttpRequest.sendJsonObject(JsonObject body) |
default Future<HttpResponse<T>> |
HttpRequest.sendMultipartForm(MultipartForm body) |
default Future<HttpResponse<T>> |
HttpRequest.sendStream(ReadStream<Buffer> body) |
Modifier and Type | Method and Description |
---|---|
default HttpRequest<T> |
HttpRequest.expect(java.util.function.Function<HttpResponse<Void>,ResponsePredicateResult> predicate)
Add an expectation that the response is valid according to the provided
predicate . |
void |
HttpRequest.send(Handler<AsyncResult<HttpResponse<T>>> handler)
Send a request, the
handler will receive the response as an HttpResponse . |
void |
HttpRequest.sendBuffer(Buffer body,
Handler<AsyncResult<HttpResponse<T>>> handler)
Like
HttpRequest.send(Handler) but with an HTTP request body buffer. |
void |
HttpRequest.sendForm(MultiMap body,
Handler<AsyncResult<HttpResponse<T>>> handler)
Like
HttpRequest.send(Handler) but with an HTTP request body multimap encoded as form and the content type
set to application/x-www-form-urlencoded . |
void |
HttpRequest.sendForm(MultiMap body,
String charset,
Handler<AsyncResult<HttpResponse<T>>> handler)
Like
HttpRequest.send(Handler) but with an HTTP request body multimap encoded as form and the content type
set to application/x-www-form-urlencoded . |
void |
HttpRequest.sendJson(Object body,
Handler<AsyncResult<HttpResponse<T>>> handler)
Like
HttpRequest.send(Handler) but with an HTTP request body object encoded as json and the content type
set to application/json . |
void |
HttpRequest.sendJsonObject(JsonObject body,
Handler<AsyncResult<HttpResponse<T>>> handler)
Like
HttpRequest.send(Handler) but with an HTTP request body object encoded as json and the content type
set to application/json . |
void |
HttpRequest.sendMultipartForm(MultipartForm body,
Handler<AsyncResult<HttpResponse<T>>> handler)
Like
HttpRequest.send(Handler) but with an HTTP request body multimap encoded as form and the content type
set to multipart/form-data . |
void |
HttpRequest.sendStream(ReadStream<Buffer> body,
Handler<AsyncResult<HttpResponse<T>>> handler)
Like
HttpRequest.send(Handler) but with an HTTP request body stream. |
Modifier and Type | Method and Description |
---|---|
HttpResponse<Buffer> |
ResponsePredicateResult.response()
The
HttpResponse which has been tested. |
Modifier and Type | Method and Description |
---|---|
static ResponsePredicate |
ResponsePredicate.create(java.util.function.Function<HttpResponse<Void>,ResponsePredicateResult> test)
Creates a new
ResponsePredicate . |
static ResponsePredicate |
ResponsePredicate.create(java.util.function.Function<HttpResponse<Void>,ResponsePredicateResult> test,
ErrorConverter errorConverter)
Creates a new
ResponsePredicate , using a custom errorConverter . |
Modifier and Type | Method and Description |
---|---|
HttpResponse |
HttpResponse.getDelegate() |
Modifier and Type | Method and Description |
---|---|
static <T> HttpResponse<T> |
HttpResponse.newInstance(HttpResponse arg) |
static <T> HttpResponse<T> |
HttpResponse.newInstance(HttpResponse arg,
io.vertx.lang.rx.TypeArg<T> __typeArg_T) |
Constructor and Description |
---|
HttpResponse(HttpResponse delegate) |
Modifier and Type | Method and Description |
---|---|
HttpResponse |
HttpResponse.getDelegate() |
Modifier and Type | Method and Description |
---|---|
static <T> HttpResponse<T> |
HttpResponse.newInstance(HttpResponse arg) |
static <T> HttpResponse<T> |
HttpResponse.newInstance(HttpResponse arg,
io.vertx.lang.rx.TypeArg<T> __typeArg_T) |
Constructor and Description |
---|
HttpResponse(HttpResponse delegate) |
Modifier and Type | Method and Description |
---|---|
HttpResponse |
HttpResponse.getDelegate() |
Modifier and Type | Method and Description |
---|---|
static <T> HttpResponse<T> |
HttpResponse.newInstance(HttpResponse arg) |
static <T> HttpResponse<T> |
HttpResponse.newInstance(HttpResponse arg,
io.vertx.lang.rx.TypeArg<T> __typeArg_T) |
Constructor and Description |
---|
HttpResponse(HttpResponse delegate) |
Copyright © 2021 Eclipse. All rights reserved.