Android(安卓)Asynchronous Http Client
16lz
2021-12-19
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
更多相关文章
- Android(安卓)webView 使用back功能返回以前浏览过的页面
- android 查看so,jar栈内存使用情况
- android maxLines ellipsize 配合使用失效,解决办法
- android service
- Android中HandlerThread的使用
- 使用universal-image-loader中出现的EOFException解决方法
- 箭头函数的基础使用
- NPM 和webpack 的基础使用
- Python list sort方法的具体使用