Example usage for io.vertx.core.net ProxyType HTTP

List of usage examples for io.vertx.core.net ProxyType HTTP

Introduction

In this page you can find the example usage for io.vertx.core.net ProxyType HTTP.

Prototype

ProxyType HTTP

To view the source code for io.vertx.core.net ProxyType HTTP.

Click Source Link

Document

HTTP CONNECT ssl proxy

Usage

From source file:examples.HTTPExamples.java

License:Open Source License

public void example58(Vertx vertx) {

    HttpClientOptions options = new HttpClientOptions()
            .setProxyOptions(new ProxyOptions().setType(ProxyType.HTTP).setHost("localhost").setPort(3128)
                    .setUsername("username").setPassword("secret"));
    HttpClient client = vertx.createHttpClient(options);

}