Hi Oleg,

> Why not make NO_HOST a little prettier? 
> 
> public static final HttpHost NO_HOST = new HttpHost("", -1, "");

I chose an IP address for the host to make sure that
there will be no DNS lookup (though there might still
be a reverse lookup). Can we rely on an exception
being triggered for an empty string? And can we rely
on ourselves not adding empty string checks to the
HttpHost constructor?

-1 is a magic number used in HttpHost, I wanted to
avoid that.

I also want to be able to identify NO_HOST when it
appears in debug output, which is easier if the
attributes are not empty.

cheers,
  Roland


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to