Hi using Vertx gradle plugin with Java 11 and Vertx 4.0.3
I'm trying to write some sample code and getting:
Can not find io.netty.resolver.dns.macos.MacOSDnsServerAddressStreamProvider in the classpath, fallback to system defaults. This may result in incorrect DNS resolutions on MacOS.
public void doSomething(RoutingContext rc) {
WebClient client = WebClient.create(vertx);
client
.post("foo.bar", "/foo/bar.json")
.ssl(true)
.as(BodyCodec.jsonObject())
.sendJsonObject(new JsonObject()
.put("first_name", "John")
.put("last_name", "Smith")
.put("phone", "15555555555")
.put("verified_email", true)
)
.onComplete(result -> {
if(result.succeeded())
rc.response().end(result.result().bodyAsBuffer());
else
rc.fail(result.cause());
});
}