[DOC] Fix HttpHost constructor arguments (#21056)

Protocol is the last argument.
Oficial API doc: https://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/org/apache/http/HttpHost.html
Your own use here: 7560101ec7/client/rest/src/test/java/org/elasticsearch/client/RequestLoggerTests.java (L54)
This commit is contained in:
Lukáš Vlček 2016-10-21 09:53:08 +02:00 committed by Simon Willnauer
parent a541f0187d
commit d88e6c62aa

View file

@ -51,8 +51,8 @@ https://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/org/apache/http/Ht
[source,java] [source,java]
-------------------------------------------------- --------------------------------------------------
RestClient restClient = RestClient.builder( RestClient restClient = RestClient.builder(
new HttpHost("http", "localhost", 9200), new HttpHost("localhost", 9200, "http"),
new HttpHost("http", "localhost", 9201)).build(); new HttpHost("localhost", 9201, "http")).build();
-------------------------------------------------- --------------------------------------------------
The `RestClient` class is thread-safe and ideally has the same lifecycle as The `RestClient` class is thread-safe and ideally has the same lifecycle as