ASIHTT prequest相当于Android或任何HTTP请求管理器/包装? [英] ASIHTTPRequest equivalent for Android or any HTTP request manager/wrapper?
问题描述
我正在开发一个应用程序,这将使大量的HTTP请求。
I'm developing an app that will make extensive HTTP requests.
我知道一个事实,即iOS的有一个叫ASIHTT prequest来管理和组织所有这些请求第三方库,使其更容易和不那么单调乏味。
I know for a fact that iOS has a third-party library called ASIHTTPRequest to manage and organize all these requests, making it much easier and less tedious.
有没有为Android提供一个类似的库?
Is there a similar library available for Android?
推荐答案
据<一href="http://www.google.com/events/io/2011/sessions/best-practices-for-accessing-google-apis-on-android.html">this说话,如果你的目标pre-姜饼版本(小于2.3),你应该坚持的 Apache的HTTP客户端库。然而,如果你的目标姜饼或更高版本,你将是更安全的使用 java.net.URLConneciton 一>所建议的谷歌工程师类
According to this talk, if you're targeting pre-Gingerbread versions (<2.3) you should stick to Apache Http Client library. If however you're targeting Gingerbread or later, you will be safer to use the java.net.URLConneciton class as recommended by the Google engineer.
这篇关于ASIHTT prequest相当于Android或任何HTTP请求管理器/包装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!