added doc for https proxy options

Signed-off-by: alexlehm <alexlehm@gmail.com>
This commit is contained in:
alexlehm
2016-05-04 00:29:17 +02:00
parent 350b75afeb
commit d07c7de97c
5 changed files with 108 additions and 12 deletions

View File

@@ -686,6 +686,14 @@ public class HTTPExamples {
}
public void example58(Vertx vertx) {
HttpClientOptions options = new HttpClientOptions().setProxyHost("localhost").setProxyPort(3128);
options.setProxyUsername("username").setProxyPassword("secret");
HttpClient client = vertx.createHttpClient(options);
}
public void serversharing(Vertx vertx) {
vertx.createHttpServer().requestHandler(request -> {
request.response().end("Hello from server " + this);