On Thu, 2013-06-06 at 23:45 +0200, Sebastiano Vigna wrote: > On 6 Jun 2013, at 8:56 PM, Oleg Kalnichevski <[email protected]> wrote: > > > What's wrong with using an explicit HttpHost with a resolved address? > > --- > > CloseableHttpClient httpClient = HttpClients.createDefault(); > > HttpHost target = new HttpHost("173.194.40.20"); > > Ahem... :) Of course. The problem is that somehow when looking for something > like this I thought that HttpHost constructors requiring a String required > the same string of the request. > > If I might make a suggestion, having a constructor accepting an InetAddress > would make it very clear that this is not the case when browsing through the > API. >
Sure. Please raise a JIRA in HttpCore for this enhancement. https://issues.apache.org/jira/browse/HTTPCORE Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
