android-async-http架構

來源:互聯網
上載者:User

標籤:thread   color   weight   lan   jar   ext   make   避免   one   

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 for everything
  • 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
可用在get/post提交資料上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架構

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.