5 Star 1 Fork 0

HarmonyOS-TPC/ohos-async-http

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Apache-2.0

Asynchronous Http Client for Android

  • Build Status branch master branch master
  • Build Status branch 1.5.0 branch 1.5.0

An asynchronous, callback-based Http client for Android built on top of Apache's HttpClient libraries.

Changelog

See what is new in version 1.4.9 released on 19th September 2015

https://github.com/android-async-http/android-async-http/blob/1.4.9/CHANGELOG.md

Javadoc

Latest Javadoc for 1.4.9 release are available here (also included in Maven repository):

https://android-async-http.github.io/android-async-http/

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 60kb 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

Examples

For inspiration and testing on device we've provided Sample Application.
See individual samples here on Github
To run Sample application, simply clone the repository and run this command, to install it on connected device

gradle :sample:installDebug

Maven

You can now integrate this library in your project via Maven. There are available two kind of builds.

releases, maven central

https://repo1.maven.org/maven2/com/loopj/android/android-async-http/

Maven URL: https://repo1.maven.org/maven2/
GroupId: com.loopj.android
ArtifactId: android-async-http
Version: 1.4.9
Packaging: JAR or AAR

Gradle

repositories {
  maven {
    mavenCentral()
  }
}
dependencies {
  implementation 'com.loopj.android:android-async-http:1.4.9'
}

development snapshots

https://oss.sonatype.org/content/repositories/snapshots/com/loopj/android/android-async-http/

Maven URL: https://oss.sonatype.org/content/repositories/snapshots/
GroupId: com.loopj.android
ArtifactId: android-async-http
Version: 1.5.0-SNAPSHOT
Packaging: JAR or AAR

Gradle

repositories {
  maven {
    url 'https://oss.sonatype.org/content/repositories/snapshots/'
  }
}
dependencies {
  implementation 'com.loopj.android:android-async-http:1.5.0-SNAPSHOT'
}

Documentation, Features and Examples

Full details and documentation can be found on the project page here:

https://android-async-http.github.io/android-async-http/

空文件

简介

暂无描述 展开 收起
README
Apache-2.0
取消

发行版

暂无发行版

贡献者

全部

语言

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/HarmonyOS-tpc/ohos-async-http.git
git@gitee.com:HarmonyOS-tpc/ohos-async-http.git
HarmonyOS-tpc
ohos-async-http
ohos-async-http
enable_set_custom_header

搜索帮助