Modifier and Type | Method and Description |
---|---|
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.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. |
Copyright © 2018. All rights reserved.