Android Asynchronous Http Client

Android异步Http客户端

A Callback-Based Http Client Library for Android

一个基于回调的Http客户端库为Android



Overview

综述

An asynchronous callback-based Http client for Android built on top of Apache’s HttpClient 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.
异步基于回调的Http客户端为Android之上的Apache HttpClient库。以外的所有请求都是应用程序的主UI线程,但任何回调逻辑将相同的线程上执行回调使用Android的处理程序创建消息传递。

Features
特征
•Make asynchronous HTTP requests, handle responses in anonymous callbacks
•HTTP requests happen outside the UI thread
•Requests use a threadpool to cap concurrent resource usage
•GET/POST params builder (RequestParams)
•Multipart file uploads with no additional third party libraries
•Tiny size overhead to your application, only 25kb for everything
•Automatic smart request retries optimized for spotty mobile connections
•Automatic gzip response decoding support for super-fast requests
•Binary file (images etc) downloading with BinaryHttpResponseHandler
•Built-in response parsing into JSON with JsonHttpResponseHandler
•Persistent cookie store, saves cookies into your app’s SharedPreferences
    •进行异步HTTP请求,处理响应在匿名回调
  •HTTP请求发生在UI线程
  •使用threadpool帽并发请求资源使用
  •GET / POST参数构建器(RequestParams)
     •多部分文件上传,没有额外的第三方库
  •应用程序开销小尺寸,只有25 kb为我所做的一切
        •自动智能移动连接请求重试优化参差不齐
  •自动解码支持gzip反应速度超快的请求
  •与BinaryHttpResponseHandler下载二进制文件(图片等)
  •内置的解析与JsonHttpResponseHandler JSON响应
  •持久化cookie存储、保存cookie到你的应用程序的SharedPreferences

更多相关文章

  1. Android 线程池原理及使用
  2. Android之子线程更新主线程
  3. android 判断当前线程是不是主线程的几种方法
  4. Android ExecutorService线程池
  5. Android利用Logcat监听应用程序本身被卸载
  6. Android 子线程请求ASP.NET后台

随机推荐

  1. android中四大组件之间相互通信
  2. Android的四大天王
  3. manifest文件
  4. Android(安卓)一个supportsRtl属性 RTl是
  5. [Android] Android(安卓)视频播放总结
  6. android中textview控件中的文字的位置是
  7. Android(安卓)浏览器内核浅谈
  8. Android(安卓)的消息队列模型
  9. android google地图定位开发,且可以自由移
  10. Android(安卓)为联系人添加图片