Search in sources :

Example 16 with WebClient

use of io.vertx.ext.web.client.WebClient in project vertx-web by vert-x3.

the class WebClientExamples method createFromOptions.

public void createFromOptions(Vertx vertx) {
    WebClientOptions options = new WebClientOptions().setUserAgent("My-App/1.2.3");
    options.setKeepAlive(false);
    WebClient client = WebClient.create(vertx, options);
}
Also used : WebClientOptions(io.vertx.ext.web.client.WebClientOptions) WebClient(io.vertx.ext.web.client.WebClient)

Aggregations

WebClient (io.vertx.ext.web.client.WebClient)16 Buffer (io.vertx.core.buffer.Buffer)11 JsonObject (io.vertx.core.json.JsonObject)3 MultiMap (io.vertx.core.MultiMap)2 Vertx (io.vertx.core.Vertx)2 VertxOptions (io.vertx.core.VertxOptions)2 WebClientOptions (io.vertx.ext.web.client.WebClientOptions)2 Future (io.vertx.core.Future)1 FileProps (io.vertx.core.file.FileProps)1 FileSystem (io.vertx.core.file.FileSystem)1 OpenOptions (io.vertx.core.file.OpenOptions)1 JksOptions (io.vertx.core.net.JksOptions)1 Async (io.vertx.ext.unit.Async)1 TestContext (io.vertx.ext.unit.TestContext)1 VertxUnitRunner (io.vertx.ext.unit.junit.VertxUnitRunner)1 HttpResponse (io.vertx.ext.web.client.HttpResponse)1 BodyCodec (io.vertx.ext.web.codec.BodyCodec)1 Checkpoint (io.vertx.junit5.Checkpoint)1 VertxExtension (io.vertx.junit5.VertxExtension)1 VertxTestContext (io.vertx.junit5.VertxTestContext)1