A Callback-Based Http Client Library for Android

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

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.

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

Features

特性

  • Make asynchronous HTTP requests, handle responses in anonymous callbacks

进行异步HTTP请求,在匿名回调中处理响应

  • HTTP requests happen outside the UI thread

HTTP请求发生在UI线程

  • Requests use a threadpool to cap concurrent resource usage

请求使用threadpool来显示并发资源使用情况

  • GET/POST params builder (RequestParams)

GET / POST参数构建器(RequestParams)

  • 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

自动智能的request 请求重试优化了移动的连接

  • Automatic gzip response decoding support for super-fast requests

自动的gzip响应解码支持速度超快的请求

  • Binary file (images etc) downloading with BinaryHttpResponseHandler

二进制文件(图片等)用BinaryHttpResponseHandler下载

  • Built-in response parsing into JSON with JsonHttpResponseHandler

内置的解析使用JsonHttpResponseHandler响应 JSON

  • Persistent cookie store, saves cookies into your app’s SharedPreferences

持久化cookie存储、保存cookie到你的应用程序的SharedPreferences

更多相关文章

  1. Android(安卓)webView 使用back功能返回以前浏览过的页面
  2. android 查看so,jar栈内存使用情况
  3. android maxLines ellipsize 配合使用失效,解决办法
  4. android service
  5. Android中HandlerThread的使用
  6. 使用universal-image-loader中出现的EOFException解决方法
  7. 箭头函数的基础使用
  8. NPM 和webpack 的基础使用
  9. Python list sort方法的具体使用

随机推荐

  1. 轉載 :【转】android UI 相关常用类简介
  2. Android 监听系统虚拟导航栏按键
  3. android 使用动画实例[1]
  4. Android的多种数据存储方式
  5. android中sqlite数据库升级方案
  6. Android Theme使用总结
  7. android按行读取文件内容的几个方法
  8. Android之ScrollView滚动到指定位置
  9. android中的UriMatcher和ContentUris
  10. 用android完成第一个helloworld