| Package | Description |
|---|---|
| io.vertx.ext.web.client | |
| io.vertx.ext.web.client.predicate | |
| io.vertx.junit5.web | |
| io.vertx.reactivex.ext.web.client | |
| io.vertx.rxjava.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.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.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 |
|---|---|
static java.util.function.Consumer<HttpResponse<Buffer>> |
TestRequest.bodyResponse(Buffer expected,
String expectedContentType) |
static java.util.function.Consumer<HttpResponse<Buffer>> |
TestRequest.emptyResponse() |
static java.util.function.Consumer<HttpResponse<Buffer>> |
TestRequest.jsonBodyResponse(Object expected) |
static java.util.function.Consumer<HttpResponse<Buffer>> |
TestRequest.responseHeader(String headerName,
String headerValue) |
Future<HttpResponse<Buffer>> |
TestRequest.send(VertxTestContext testContext)
Send and complete test context with
VertxTestContext.completeNow() when request is completed and no assertion fails |
Future<HttpResponse<Buffer>> |
TestRequest.send(VertxTestContext testContext,
Checkpoint checkpoint)
Send and flag the provided checkpoint with
Checkpoint.flag() when request is completed and no assertion fails |
Future<HttpResponse<Buffer>> |
TestRequest.send(VertxTestContext testContext,
VertxTestContext.ExecutionBlock onEnd)
Send and execute
onEnd code block wrapped in VertxTestContext.verify(VertxTestContext.ExecutionBlock)
when request is completed and no assertion fails |
Future<HttpResponse<Buffer>> |
TestRequest.sendBuffer(Buffer buf,
VertxTestContext testContext)
Send a
Buffer and complete test context with VertxTestContext.completeNow() when request is completed and no assertion fails |
Future<HttpResponse<Buffer>> |
TestRequest.sendBuffer(Buffer buf,
VertxTestContext testContext,
Checkpoint checkpoint)
Send a
Buffer and flag the provided checkpoint with Checkpoint.flag() when request is completed and no assertion fails |
Future<HttpResponse<Buffer>> |
TestRequest.sendBuffer(Buffer buf,
VertxTestContext testContext,
VertxTestContext.ExecutionBlock onEnd)
Send a
Buffer and execute onEnd code block wrapped in VertxTestContext.verify(VertxTestContext.ExecutionBlock)
when request is completed and no assertion fails |
Future<HttpResponse<Buffer>> |
TestRequest.sendJson(Object json,
VertxTestContext testContext)
Send a json and complete test context with
VertxTestContext.completeNow() when request is completed and no assertion fails |
Future<HttpResponse<Buffer>> |
TestRequest.sendJson(Object json,
VertxTestContext testContext,
Checkpoint checkpoint)
Send a json and flag the provided checkpoint with
Checkpoint.flag() when request is completed and no assertion fails |
Future<HttpResponse<Buffer>> |
TestRequest.sendJson(Object json,
VertxTestContext testContext,
VertxTestContext.ExecutionBlock onEnd)
Send a json and execute
onEnd code block wrapped in VertxTestContext.verify(VertxTestContext.ExecutionBlock)
when request is completed and no assertion fails |
Future<HttpResponse<Buffer>> |
TestRequest.sendMultipartForm(MultipartForm form,
VertxTestContext testContext)
Send a multipart form and complete test context with
VertxTestContext.completeNow() when request is completed and no assertion fails |
Future<HttpResponse<Buffer>> |
TestRequest.sendMultipartForm(MultipartForm form,
VertxTestContext testContext,
Checkpoint checkpoint)
Send a multipart form and flag the provided checkpoint with
Checkpoint.flag() when request is completed and no assertion fails |
Future<HttpResponse<Buffer>> |
TestRequest.sendMultipartForm(MultipartForm form,
VertxTestContext testContext,
VertxTestContext.ExecutionBlock onEnd)
Send a multipart form and execute
onEnd code block wrapped in VertxTestContext.verify(VertxTestContext.ExecutionBlock)
when request is completed and no assertion fails |
Future<HttpResponse<Buffer>> |
TestRequest.sendURLEncodedForm(MultiMap form,
VertxTestContext testContext)
Send an URL Encoded form and complete test context with
VertxTestContext.completeNow() when request is completed and no assertion fails |
Future<HttpResponse<Buffer>> |
TestRequest.sendURLEncodedForm(MultiMap form,
VertxTestContext testContext,
Checkpoint checkpoint)
Send an URL Encoded form and flag the provided checkpoint with
Checkpoint.flag() when request is completed and no assertion fails |
Future<HttpResponse<Buffer>> |
TestRequest.sendURLEncodedForm(MultiMap form,
VertxTestContext testContext,
VertxTestContext.ExecutionBlock onEnd)
Send an URL Encoded form and execute
onEnd code block wrapped in VertxTestContext.verify(VertxTestContext.ExecutionBlock)
when request is completed and no assertion fails |
static java.util.function.Consumer<HttpResponse<Buffer>> |
TestRequest.statusCode(int statusCode) |
static java.util.function.Consumer<HttpResponse<Buffer>> |
TestRequest.statusMessage(String statusMessage) |
| 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) |
HttpResponse(HttpResponse delegate,
io.vertx.lang.rx.TypeArg<T> typeArg_0) |
| 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) |
HttpResponse(HttpResponse delegate,
io.vertx.lang.rx.TypeArg<T> typeArg_0) |
Copyright © 2019 Eclipse. All rights reserved.