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;
});
}鑻遍泟鏃犳晫
...