public final class SimpleHttpClient extends Object
| Constructor and Description |
|---|
SimpleHttpClient(Vertx vertx,
String userAgent,
HttpClientOptions options) |
| Modifier and Type | Method and Description |
|---|---|
Future<SimpleHttpResponse> |
fetch(HttpMethod method,
String url,
JsonObject headers,
Buffer payload) |
SimpleHttpClient |
fetch(HttpMethod method,
String url,
JsonObject headers,
Buffer payload,
Handler<AsyncResult<SimpleHttpResponse>> callback) |
static Buffer |
jsonToQuery(JsonObject json) |
static JsonObject |
queryToJson(Buffer query) |
public SimpleHttpClient(Vertx vertx, String userAgent, HttpClientOptions options)
public Future<SimpleHttpResponse> fetch(HttpMethod method, String url, JsonObject headers, Buffer payload)
public SimpleHttpClient fetch(HttpMethod method, String url, JsonObject headers, Buffer payload, Handler<AsyncResult<SimpleHttpResponse>> callback)
public static Buffer jsonToQuery(JsonObject json)
public static JsonObject queryToJson(Buffer query) throws UnsupportedEncodingException
UnsupportedEncodingExceptionCopyright © 2021. All rights reserved.