//是否支持扩展行为,代理服务器一般不支持。用于指出客户端要求的特殊服务器行为。
private boolean expectContinueEnabled;
//代理host
private HttpHost proxy;
//本地地址
private InetAddress localAddress;
// 在提交请求之前 测试连接是否可用
private boolean staleConnectionCheckEnabled = false;
//CookieSpec接口代表一个管理cookie的规范
private String cookieSpec;
//是否允许重定向,不允许重定向场景是?
private boolean redirectsEnabled = true;
//相对url 重定向
private boolean relativeRedirectsAllowed = true;
//循环重定向允许
private boolean circularRedirectsAllowed;
//定向的最大数量。这个重定向数字的限制意在防止由破碎的服务器端脚本引发的死循环
private int maxRedirects = 50;
//是否开启身份认证
private boolean authenticationEnabled = true;
//目标优先认证方案
private Collection<String> targetPreferredAuthSchemes;
//代理优先认证方案
private Collection<String> proxyPreferredAuthSchemes;
//连接请求超时
private int connectionRequestTimeout = -1;
//连接超时
private int connectTimeout = -1;
//socket超时
private int socketTimeout = -1;
//是否自动处理压缩数据
private boolean decompressionEnabled = true;