14
推荐阅读: 临兵斗者皆阵列在前 、 花都坏少 、 阴间到底是什么 、 鬼葬 、 圣天使物语 、 鬼打墙 、 虫族 、 民调局异闻录 、 注册阴阳师 、 劫天运 、 末世黑暗纪 、 鬼眼新娘 、 最强兵王 、 聊斋奇谭 、 极品僵尸王 、 弹道无痕 、 与鬼为妻 、 地狱公寓 、 谨言 、 13路末班车
publichttputils{
this(__timeout);
publichttputils(inttimeout){
httpparamsparams=newbasichttpparams;
a(params,timeout);
httpe(params,timeout);
httpeeout(params,timeout);
asperroute(params,newperroutebean(10));
as(params,10);
httpe(params,true);
httpeize(params,1024*8);
httppro(params,_1_1);
schemeregistryschemeregistry=newschemeregistry;
sewscheme("http",plainso,80));
sewscheme("https",defaultsslso,443));
httpt=newdefaulthttpt(hreadsafetanager(params,schemeregistry),params);
tryhandler(ryhandler(default_retry_times));
eptor(prequestinterceptor{
rride
publicvoidprocess(.equest,httptexthttptext),ioexception{
if(!(header_accept_eng)){
(header_accept_eng,eng_gzip);
});
ceptor(prespoerceptor{
rride
publicvoidprocess(httpresponserespoptexthttptext),ioexception{
finalhttpentityentity=;
if(entity==null){
return;
finalheadereng=ng;
if(eng!=null){
for(headereleme:){
if(("gzip")){
(newgzipdepressiy);
return;
}
});
}!
本文网址:http://yingxiongwudi.23quan.com/38787220.html
手机用户请浏览:http://m.23quan.com享受更优质的阅读体验。
温馨提示:按 回车[Enter]键 返回书目,按 ←键 返回上一页, 按 →键 进入下一页,加入书签方便您下次继续阅读。章节错误?点此举报