Skip to content

Commit

Permalink
add info for defaultSchemeForDiscoveredNodes to README
Browse files Browse the repository at this point in the history
  • Loading branch information
leviwilson committed Mar 28, 2016
1 parent 7b80fdb commit 02f07a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,7 @@ SchemeIOSessionStrategy httpsIOSessionStrategy = new SSLIOSessionStrategy(sslCon

JestClientFactory factory = new JestClientFactory();
factory.setHttpClientConfig(new HttpClientConfig.Builder("https://localhost:9200")
.defaultSchemeForDiscoveredNodes("https") // required, otherwise uses http
.sslSocketFactory(sslSocketFactory) // this only affects sync calls
.httpsIOSessionStrategy(httpsIOSessionStrategy) // this only affects async calls
.build()
Expand Down

0 comments on commit 02f07a2

Please sign in to comment.