摘要: 今天看了一天的apache 的httpasyncclient ,为了和默认的httpclient做个对比,httpcore是核心轻量级的提供传统阻塞IO 和 java NIO两种方式,httpclient基于httpcore做的全功能封装能应付绝大部分爬虫需求,HttpAsyncClient 是基于httpcore NIO 和httpclient基础上做的进一步封装,主要利用异步回调方式,适用于高性能需求的场景下 ,官方文档 如是说:Asynch HttpClientis a HTTP/1.1 compliant HTTP agent implementation based on HttpC 阅读全文
posted @ 2014-03-18 16:36 cphmvp 阅读(643) 评论(0) 推荐(0) 编辑
爬虫在线测试小工具: http://tool.haoshuju.cn/