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 |
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.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) |
Copyright © 2023 Eclipse. All rights reserved.