MCPcopy Index your code
hub / github.com/android-async-http/android-async-http

github.com/android-async-http/android-async-http @1.4.11

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.4.11 ↗ · + Follow
839 symbols 1,936 edges 84 files 204 documented · 24% updated 3y ago1.4.11 · 2020-06-29★ 10,586119 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

This project under develop, and is currently insecure to use

Since there were no active maintainers for this project for a long time, and issues got stale, security issues pile up and it's not viable to maintain this project further, given there are quality replacements, this project is closing down.

This library has many issues handling modern TLS/SSL security protocols using and problems with validating chain-of-trust of remote services, it communicates with. It also suffers from high-memory-usage issues, when handling large upstream or downstream jobs.

It is not suitable for modern projects, and thus, unless someone takes over the maintenance and invests big time into making it performance and secure again, it is not recommended to use the library further.

For issues with using this library or migrating to different one, use appropriate forum, for example https://stackoverflow.com/questions/tagged/android-async-http

Use these alternatives, as replacement in your app please:

  • OkHttp https://square.github.io/okhttp/
  • Volley https://developer.android.com/training/volley
  • RetroFit https://square.github.io/retrofit/

or don't, i'm not a cop

---

---

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

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

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

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/

Extension points exported contracts — how you extend this code

ResponseHandlerInterface (Interface)
Interface to standardize implementations [2 implementers]
library/src/main/java/com/loopj/android/http/ResponseHandlerInterface.java
SampleInterface (Interface)
(no doc) [1 implementers]
sample/src/main/java/com/loopj/android/http/sample/SampleInterface.java
LogInterface (Interface)
Interface independent to any library, which currently uses same interface as android.util.Log implementation You [2 implementers]
library/src/main/java/com/loopj/android/http/LogInterface.java
JsonValueInterface (Interface)
This interface is used to encapsulate JSON values that are handled entirely by the app. For example, apps could manage a
library/src/main/java/com/loopj/android/http/JsonValueInterface.java

Core symbols most depended-on inside this repo

write
called by 60
library/src/main/java/com/loopj/android/http/Base64OutputStream.java
d
called by 52
library/src/main/java/com/loopj/android/http/LogInterface.java
get
called by 51
library/src/main/java/com/loopj/android/http/AsyncHttpClient.java
debugHeaders
called by 45
sample/src/main/java/com/loopj/android/http/sample/SampleParentActivity.java
debugStatusCode
called by 45
sample/src/main/java/com/loopj/android/http/sample/SampleParentActivity.java
e
called by 41
library/src/main/java/com/loopj/android/http/LogInterface.java
debugResponse
called by 41
sample/src/main/java/com/loopj/android/http/sample/SampleParentActivity.java
add
called by 30
library/src/main/java/com/loopj/android/http/RequestParams.java

Shape

Method 744
Class 91
Interface 4

Languages

Java100%

Modules by API surface

library/src/main/java/com/loopj/android/http/AsyncHttpClient.java69 symbols
library/src/main/java/com/loopj/android/http/AsyncHttpResponseHandler.java40 symbols
sample/src/main/java/com/loopj/android/http/sample/SampleParentActivity.java33 symbols
library/src/main/java/com/loopj/android/http/RequestParams.java24 symbols
library/src/main/java/com/loopj/android/http/SimpleMultipartEntity.java23 symbols
library/src/main/java/com/loopj/android/http/ResponseHandlerInterface.java21 symbols
sample/src/main/java/com/loopj/android/http/sample/PrePostProcessingSample.java19 symbols
sample/src/main/java/com/loopj/android/http/sample/SampleInterface.java18 symbols
sample/src/main/java/com/loopj/android/http/sample/SaxSample.java17 symbols
library/src/main/java/com/loopj/android/http/JsonStreamerEntity.java17 symbols
library/src/main/java/com/loopj/android/http/Base64.java16 symbols
sample/src/main/java/com/loopj/android/http/sample/ThreadingTimeoutSample.java15 symbols

For agents

$ claude mcp add android-async-http \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact