Package | Description |
---|---|
io.vertx.rxjava.ext.web.client | |
io.vertx.rxjava.ext.web.client.predicate |
Modifier and Type | Field and Description |
---|---|
static TypeArg<HttpResponse> |
HttpResponse.__TYPE_ARG |
Modifier and Type | Method and Description |
---|---|
static <T> HttpResponse<T> |
HttpResponse.newInstance(io.vertx.ext.web.client.HttpResponse arg) |
static <T> HttpResponse<T> |
HttpResponse.newInstance(io.vertx.ext.web.client.HttpResponse arg,
TypeArg<T> __typeArg_T) |
Modifier and Type | Method and Description |
---|---|
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(Buffer body,
io.vertx.core.Handler<io.vertx.core.AsyncResult<HttpResponse<T>>> handler)
Like
HttpRequest.send(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.rxjava.ext.web.client.HttpResponse<T>>>) but with an HTTP request body buffer. |
void |
HttpRequest.sendForm(MultiMap body,
io.vertx.core.Handler<io.vertx.core.AsyncResult<HttpResponse<T>>> handler)
Like
HttpRequest.send(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.rxjava.ext.web.client.HttpResponse<T>>>) 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(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.rxjava.ext.web.client.HttpResponse<T>>>) 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(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.rxjava.ext.web.client.HttpResponse<T>>>) 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(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.rxjava.ext.web.client.HttpResponse<T>>>) but with an HTTP request body multimap encoded as form and the content type
set to multipart/form-data . |
void |
HttpRequest.sendStream(rx.Observable<Buffer> body,
io.vertx.core.Handler<io.vertx.core.AsyncResult<HttpResponse<T>>> handler)
Like
HttpRequest.send(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.rxjava.ext.web.client.HttpResponse<T>>>) but with an HTTP request body stream. |
void |
HttpRequest.sendStream(ReadStream<Buffer> body,
io.vertx.core.Handler<io.vertx.core.AsyncResult<HttpResponse<T>>> handler)
Like
HttpRequest.send(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.rxjava.ext.web.client.HttpResponse<T>>>) but with an HTTP request body stream. |
Modifier and Type | Method and Description |
---|---|
HttpResponse<Buffer> |
ResponsePredicateResult.response()
The which has been tested.
|
Modifier and Type | Method and Description |
---|---|
ResponsePredicateResult |
ResponsePredicate.apply(HttpResponse<Void> in) |
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.