Doc adjustment

This commit is contained in:
Julien Viet
2017-04-24 08:16:24 +02:00
parent 435b50778e
commit 186ba9e95b
3 changed files with 0 additions and 31 deletions

View File

@@ -803,13 +803,4 @@ public class HTTPExamples {
client.getNow(443, "www.example.com", "/somepath", resp -> {
});
}
public void sniHost(HttpClient client) {
// Use an HTTP proxy
HttpClientRequest request = client.get(443, "the.proxy", "/somepath", resp -> {
});
// Set the host header and the server name to www.example.com server and connect
request.setHost("www.example.com").end();
}
}