Originally http.request can only connect to one host. Is there other way or other method that can specify multiple hosts for creating a http remote request client?
The reason behind that is that the remote service I'm connecting have three redundant hosts, if one go down, the others will keep working. So, i'm looking for a way to make http.request or any request client to specify multiple hosts, and connect to the one that is working. And switch to another host in the list if first one fail.