历史

12(1 / 0)

,最快更新英雄无敌最新章节!

publichttputils{

this(_conn_timeout);

publichttputils(intconntimeout){

httpparamsparams=newbasichttpparams;

conn);

httpconne(para);

httpconneeout(para);

connmasperroute(paraperroutebean(10));

conns(params,10);

httpconne(params,true);

httpconneize(params,1024*8);

httppro(params,_1_1);

schemeregistryschemeregistry=newschemeregistry;

sch(newscheinso,80));

sch(newscheme("https",defaultsslso,443));

httpclient=newdefaulthttpclient(newthreadsafeclientconnmanager(params,schemeregistry),params);

tryhandler(newretryhandler(default_retry_times));

eptor(newhttprequestinterceptor{

rride

publicvoidprocess(.equest,httpcontexthttpcontext),ioexception{

if(!(header_accept_encoding)){

(header_accept_encoding,encoding_gzip);

});

ceptor(newhttpresponseinterceptor{

rride

publicvoidprocess(httpresponseresponse,httpcontexthttpcontext),ioexception{

finalhttpentityentity=;

if(entity==null){

return;

finalheaderencoding=ng;

if(encoding!=null){

for(headerele:){

if(("gzip")){

(newgzipdepressingentity);

return;

});

举报本章错误( 无需登录 )
最新小说: 朱元璋穿越崇祯 曹操穿越武大郎 女帝陛下,您何故造反? 特种岁月之弹道无声 镇疆军 明末:辽东雄狮 寒门麒麟子,公子世无双 大明:家父永乐,永镇山河 大明求生记 风起明末