public HttpHostfinal String hostname final int port thishostname port null; 参数的IP例子
public HttpHost(final String hostname, final int port) { this(hostname, port, null); }
// 示例参数的IP例子 HttpHost host = new HttpHost("192.168.0.1", 8080);
原文地址: https://www.cveoy.top/t/topic/ilJk 著作权归作者所有。请勿转载和采集!