13(1 / 2)

加入书签

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{

↑返回顶部↑

书页/目录

>