Package | Description |
---|---|
io.vertx.ext.web.client | |
io.vertx.ext.web.client.predicate |
Modifier and Type | Method and Description |
---|---|
default HttpRequest<T> |
HttpRequest.expect(Function<HttpResponse<Void>,ResponsePredicateResult> predicate)
Add an expectation that the response is valid according to the provided
predicate . |
void |
HttpRequest.send(io.vertx.core.Handler<io.vertx.core.AsyncResult<HttpResponse<T>>> handler)
Send a request, the
handler will receive the response as an HttpResponse . |
void |
HttpRequest.sendBuffer(io.vertx.core.buffer.Buffer body,
io.vertx.core.Handler<io.vertx.core.AsyncResult<HttpResponse<T>>> handler)
Like
HttpRequest.send(Handler) but with an HTTP request body buffer. |
void |
HttpRequest.sendForm(io.vertx.core.MultiMap body,
io.vertx.core.Handler<io.vertx.core.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,
io.vertx.core.Handler<io.vertx.core.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(io.vertx.core.json.JsonObject body,
io.vertx.core.Handler<io.vertx.core.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,
io.vertx.core.Handler<io.vertx.core.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(io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> body,
io.vertx.core.Handler<io.vertx.core.AsyncResult<HttpResponse<T>>> handler)
Like
HttpRequest.send(Handler) but with an HTTP request body stream. |
Modifier and Type | Method and Description |
---|---|
HttpResponse<io.vertx.core.buffer.Buffer> |
ResponsePredicateResult.response()
The
HttpResponse which has been tested. |
Modifier and Type | Method and Description |
---|---|
static ResponsePredicate |
ResponsePredicate.create(Function<HttpResponse<Void>,ResponsePredicateResult> test)
Creates a new
ResponsePredicate . |
static ResponsePredicate |
ResponsePredicate.create(Function<HttpResponse<Void>,ResponsePredicateResult> test,
ErrorConverter errorConverter)
Creates a new
ResponsePredicate , using a custom errorConverter . |
Copyright © 2021 Eclipse. All rights reserved.