[transport] document Transport#setHosts()

This commit is contained in:
spalger
2016-02-04 12:15:29 -07:00
parent 453cd9e1af
commit 4e479599a7

View File

@ -34,3 +34,13 @@
`bulkBody`::
`Boolean` -- Set to `true` if the body should be formatted using the newline delimited JSON format used by the `bulk` API.
=== setHosts(hostConfigs)
Use this method to dynamically change the list or hosts the client uses.
==== args
[horizontal]
`hostConfigs`::
`Array<HostConfig>` -- any valid host config value, as accepted by the client constructor. Each value can be either a url string, an object describing the values detailed in the host[host] docs, or an instance of the `Host` class.