HttpHost 类构造方法:使用 IP 地址和端口创建 HttpHost 对象
public HttpHost(final String hostname, final int port) {\n this(hostname, port, null);\n }\n\n// 示例参数的IP例子\nHttpHost host = new HttpHost("192.168.0.1", 8080);
原文地址: http://www.cveoy.top/t/topic/p3LR 著作权归作者所有。请勿转载和采集!