英语资料翻译

来源:互联网 发布:重置网络设置命令 编辑:程序博客网 时间:2024/05/16 01:27

Android Asynchronous Http Client

A Callback-Based Http Client Library for 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.

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客户程序
基于Android的HTTP客户端回调类
概述

一个基于Android的HTTP客户端回调函数是建立在Apache的HTTPclient类之上。所有的请求建立应用程序的UI线程之外。但任何回调的逻辑将使用Android的Handler message进行传递并在同一线程里执行。

特征

  • 使HTTP请求异步化,在匿名回调中处理响应。
  • Http请求发生在UI线程之外
  • Request使用线程池限制并发资源使用
  • GET/POST参数生成器Requestparams
  • 上传了没有第三方库文件的多个文件
  • 对你的项目消耗极小,总共只有25kb
  • 全自动智能请求重复优化点式移动连接
  • 自动GZIP响应解码为超快速请求提供支持
  • BinaryHttpResponseHandler提供二进制文件的下载(包括图片)
  • JsonHttpResponseHandler建立在响应中并解析JSON语句
  • 持久性Cookie存储保存Cookie到你的应用SharedPreferences


0 0