Asynchronous Http Client for Android
====================================
[![Build Status](https://travis-ci.org/android-async-http/android-async-http.png?branch=master)](https://travis-ci.org/android-async-http/android-async-http)
An asynchronous, callback-based Http client for Android built on top of Apache's [HttpClient](https://hc.apache.org/httpcomponents-client-ga/) libraries.
Changelog
---------
See what is new in version 1.4.11 released on 29th June 2020
https://github.com/android-async-http/android-async-http/blob/1.4.11/CHANGELOG.md
Javadoc
-------
Latest Javadoc for 1.4.11 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
- Support sni with Conscrypt on older android device ([wiki](https://github.com/android-async-http/android-async-http/wiki/Support-SNI-on-lower-android-device))
Examples
--------
For inspiration and testing on device we've provided Sample Application.
See individual samples [here on Github](https://github.com/android-async-http/android-async-http/tree/1.4.11/sample/src/main/java/com/loopj/android/http/sample)
To run Sample application, simply clone the repository and run this command, to install it on connected device
```java
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.11
Packaging: JAR or AAR
```
Gradle
```groovy
repositories {
mavenCentral()
}
dependencies {
implementation 'com.loopj.android:android-async-http:1.4.11'
}
```
**development snapshots**
snapshot might not be published yet
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.12-SNAPSHOT
Packaging: JAR or AAR
```
Gradle
```groovy
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/
没有合适的资源?快使用搜索试试~ 我知道了~
基于 Apache 的 HttpClient 库构建的 Android 异步、基于回调的 Http 客户端 .zip
共141个文件
java:84个
jar:15个
xml:12个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 111 浏览量
2024-11-25
03:10:53
上传
评论
收藏 844KB ZIP 举报
温馨提示
Android 异步 Http 客户端基于 Apache 的HttpClient库构建的 Android 异步、基于回调的 Http 客户端。变更日志查看 2020 年 6 月 29 日发布的 1.4.11 版本中的新增功能https://github.com/android-async-http/android-async-http/blob/1.4.11/CHANGELOG.mdJavadoc1.4.11 版本的最新 Javadoc 可在此处获得(也包含在 Maven 存储库中)https://android-async-http.github.io/android-async-http/doc/特征发出异步HTTP 请求,在匿名回调中处理响应HTTP 请求发生在 UI 线程之外请求使用线程池来限制并发资源使用量GET/POST参数构建器(RequestParams)无需额外的第三方库即可进行分段文件上传应用程序占用很小的空间,所有内容仅占60kb自动智能请求重试,针对不稳定的移动连接进行了优化自动gzip响应解码支持超快速请求可选
资源推荐
资源详情
资源评论
收起资源包目录
基于 Apache 的 HttpClient 库构建的 Android 异步、基于回调的 Http 客户端 .zip (141个子文件)
gradlew.bat 2KB
store.bks 1KB
.gitignore 283B
.gitignore 7B
maven_push.gradle 4KB
build.gradle 3KB
build.gradle 1KB
build.gradle 961B
settings.gradle 188B
gradlew 5KB
android-async-http-1.4.8.jar 104KB
android-async-http-1.4.7.jar 99KB
android-async-http-1.4.6.jar 93KB
android-async-http-1.4.5.jar 90KB
android-async-http-1.4.4.jar 60KB
gradle-wrapper.jar 51KB
android-async-http-1.4.3.jar 28KB
android-async-http-1.4.2.jar 25KB
android-async-http-1.4.1.jar 25KB
android-async-http-1.4.0.jar 25KB
android-async-http-1.3.2.jar 23KB
android-async-http-1.3.0.jar 22KB
android-async-http-1.3.1.jar 19KB
android-async-http-1.2.1.jar 18KB
android-async-http-1.2.0.jar 18KB
AsyncHttpClient.java 73KB
Base64.java 29KB
RequestParams.java 26KB
AsyncHttpResponseHandler.java 19KB
SampleParentActivity.java 15KB
JsonStreamerEntity.java 14KB
JsonHttpResponseHandler.java 13KB
SimpleMultipartEntity.java 10KB
FileAsyncHttpResponseHandler.java 9KB
PersistentCookieStore.java 9KB
AsyncHttpRequest.java 9KB
Http401AuthSample.java 9KB
MySSLSocketFactory.java 8KB
SecureSocketFactory.java 8KB
CustomCASample.java 7KB
RangeResponseSample.java 7KB
BaseJsonHttpResponseHandler.java 7KB
MyRedirectHandler.java 6KB
ResponseHandlerInterface.java 6KB
BinaryHttpResponseHandler.java 6KB
DataAsyncHttpResponseHandler.java 6KB
RequestParamsDebug.java 6KB
SaxAsyncHttpResponseHandler.java 5KB
AsyncBackgroundThreadSample.java 5KB
PrePostProcessingSample.java 5KB
DirectorySample.java 5KB
WaypointsActivity.java 5KB
RequestHandle.java 5KB
TextHttpResponseHandler.java 4KB
Base64OutputStream.java 4KB
RangeFileAsyncHttpResponseHandler.java 4KB
SynchronousClientSample.java 4KB
UsePoolThreadSample.java 4KB
RetryHandler.java 4KB
PersistentCookiesSample.java 4KB
Redirect302Sample.java 4KB
SaxSample.java 4KB
IntentServiceSample.java 4KB
ExampleIntentService.java 4KB
SyncHttpClient.java 3KB
JsonStreamerSample.java 3KB
ThreadingTimeoutSample.java 3KB
FileSample.java 3KB
JsonSample.java 3KB
LogHandler.java 3KB
GetSample.java 3KB
BearerAuthSchemeFactory.java 3KB
BinarySample.java 3KB
RetryRequestSample.java 3KB
DeleteSample.java 3KB
ResumeDownloadSample.java 3KB
PostSample.java 3KB
CancelRequestByTagSample.java 3KB
PutSample.java 3KB
SerializableCookie.java 3KB
HeadSample.java 2KB
FilesSample.java 2KB
ContentTypeForHttpEntitySample.java 2KB
PreemptiveAuthorizationHttpRequestInterceptor.java 2KB
DigestAuthSample.java 2KB
SampleInterface.java 2KB
SampleJSON.java 2KB
PatchSample.java 2KB
Utils.java 2KB
CancelRequestHandleSample.java 2KB
HttpDelete.java 2KB
HttpGet.java 2KB
FileUtil.java 2KB
BlackholeHttpResponseHandler.java 1KB
JsonValueInterface.java 1KB
TokenCredentials.java 1KB
LogInterface.java 1KB
SampleApplication.java 1KB
CancelAllRequestsSample.java 1KB
GzipSample.java 1023B
共 141 条
- 1
- 2
资源评论
赵闪闪168
- 粉丝: 1567
- 资源: 3662
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功