mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-25 07:37:19 -04:00
[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:
parent
a541f0187d
commit
d88e6c62aa
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue