Android Asynchronous Http Client

1、Overview综述

An asynchronous callback-based Http client for Android built on top of Apache’sHttpClient libraries. All requests are made outside of your app’s main UI thread, but any callback logic will be executed on the same thread as the callback was created using Android’s Handler message passing.

Android的异步回调的Http客户端是基于Apache HttpClient库之上的。所有请求都是你的应用程序的主UI线程以外的,但任何回调逻辑将在相同的线程上执行回调使用Android的处理程序创建消息传递。

 

2、Features特点
  • Make asynchronous HTTP requests, handle responses in anonymous callbacks创建asynchronous HTTP请求,处理在 anonymous callbacks 中的响应
  • HTTP requests happen outside the UI thread HTTP请求发生在UI线程的外面
  • Requests use a threadpool to cap concurrent resource usage 请求使用一个线程池来覆盖并发的资源用法
  • GET/POST params builder (RequestParams)  GET/POST参数的建立者(请求参数)
  • Multipart file uploads with no additional third party libraries  多部分文件上传,没有额外的第三方库
  • Tiny size overhead to your application, only 25kb for everything 超过应用程序之上的微小的尺寸,只有25 kb
  • Automatic smart request retries optimized for spotty mobile connections  自动智能移动连接请求重试优化参差不齐
  • Automatic gzip response decoding support for super-fast requests 自动解码支持gzip反应速度超快的请求
  • Binary file (images etc) downloading withBinaryHttpResponseHandler 用BinaryHttpResponseHandler下载的二进制文件(图片等)
  • Built-in response parsing into JSON withJsonHttpResponseHandler  内置的解析与JsonHttpResponseHandler JSON响应
  • Persistent cookie store, saves cookies into your app’s SharedPreferences  持久化cookie存储,保存cookie到你的应用程序的SharedPreferences
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值