android-async-http读写cookie,android-async-http

Asynchronous Http Client for Android

ac628c14bc841569f1e53fcf306d995e.png

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.11 released on 29th June 2020

Javadoc

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

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)

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

Maven URL: https://repo1.maven.org/maven2/

GroupId: com.loopj.android

ArtifactId: android-async-http

Version: 1.4.11

Packaging: JAR or AAR

Gradle

repositories {

mavenCentral()

}

dependencies {

implementation 'com.loopj.android:android-async-http:1.4.11'

}

development snapshots

snapshot might not be published yet

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

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:

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值