关灯
护眼
字体:

12

首页书架加入书签返回目录

请安装我们的客户端

更新超快的免费小说APP

下载APP
终身免费阅读

添加到主屏幕

请点击,然后点击“添加到主屏幕”

    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;

    }

    }

    });

    }
上一章目录下一章

请安装我们的客户端

更新超快的免费小说APP

下载APP
终身免费阅读

添加到主屏幕

请点击,然后点击“添加到主屏幕”