android-async-http框架
阿新 • • 發佈:2017-07-18
ati post提交 absolut display tails amp 請求 -h outside
android-async-http
簡單介紹:An asynchronous, callback-based Http client for Android built on top of Apache‘s HttpClient libraries.即在Apache‘s HttpClient 開源框架(該Apache‘s HttpClient 框架在eclipse裏面不用導入額外的jar包,由於已經自帶了)的基礎上為android所設計的框架。Features
- Make asynchronous HTTP requests, handle responses in anonymous callbacks
- 異步的HTTP請求,異步的響應回調
- HTTP requests happen outside the UI thread
- HTTP請求不在UI線程內。避免了ANR錯誤
- Requests use a threadpool to cap concurrent resource usage
- 通過threadpool實現Request,限制並發資源的使用
- GET/POST params builder (RequestParams)
- Multipart file uploads with no additional third party libraries
- Tiny size overhead to your application, only 19kb
- Automatic smart request retries optimized for spotty mobile connections
- Automatic gzip response decoding support for super-fast requests
- Optional built-in response parsing into JSON (JsonHttpResponseHandler)
- Optional persistent cookie store, saves cookies into your app‘s SharedPreferences
- 可選擇性的永久cookie保存。在你的SharedPreferences上保存cookies
Documentation, Features and Examples
Full details and documentation can be found on the project page here:
http://loopj.com/android-async-http/
android-async-http框架