public static void nonProxyHosts(final String... hosts) {
    if (hosts != null && hosts.length > 0) {
      StringBuilder separated = new StringBuilder();
      int last = hosts.length - 1;
      for (int i = 0; i < last; i++)
        separated.append(hosts[i]).append('|');
      separated.append(hosts[last]);
      setProperty("http.nonProxyHosts", separated.toString());
    } else
      setProperty("http.nonProxyHosts", null);
  }
Set the 'http.nonProxyHosts' property to the given host values.
<p>
Hosts will be separated by a '|' character.
<p>
This setting will apply to all requests.

@param hosts
lib/src/main/java/com/github/kevinsawicki/http/HttpRequest.java