android-async-http

An Asynchronous HTTP Library for Android

Github星跟踪图

Asynchronous Http Client for Android

Build Status

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.10 released on 20th July 2019

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

Javadoc

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

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

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.10
Packaging: JAR or AAR

Gradle

repositories {
  mavenCentral()
}

dependencies {
  implementation 'com.loopj.android:android-async-http:1.4.10'
}

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.4.11-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.4.11-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/

主要指标

概览
名称与所有者android-async-http/android-async-http
主编程语言Java
编程语言Java (语言数: 1)
平台
许可证Apache License 2.0
所有者活动
创建于2011-02-20 11:25:07
推送于2023-04-17 22:55:24
最后一次提交2021-01-18 17:40:25
发布数14
最新版本名称1.4.11 (发布于 2020-06-29 15:32:51)
第一版名称1.3.1 (发布于 )
用户参与
星数10.6k
关注者数750
派生数4.1k
提交数899
已启用问题?
问题数1097
打开的问题数120
拉请求数165
打开的拉请求数0
关闭的拉请求数122
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?