# loopj/android-async-http

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/loopj-android-async-http).**

10,587 stars · 4,037 forks · Java · Apache-2.0

## Links

- GitHub: https://github.com/loopj/android-async-http
- Homepage: https://github.com/android-async-http/android-async-http#this-project-is-no-longer-maintained-and-is-currently-deprecated-and-insecure-to-use
- awesome-repositories: https://awesome-repositories.com/repository/loopj-android-async-http.md

## Description

This is an asynchronous HTTP client for Android that simplifies network requests by wrapping Apache HttpClient. It provides a callback-based networking library for fetching remote data and communicating with servers without blocking the user interface.

The project includes a multipart HTTP uploader for sending binary files and large data payloads, as well as a JSON parser to convert raw response text into structured data objects. It features a session manager that persists cookies in local application preferences to maintain state across multiple requests.

Additional capabilities include automatic Gzip response decoding to reduce data usage and a request retrying system to handle unstable mobile connectivity. Network operations are offloaded to background worker threads to ensure interface responsiveness.

## Tags

### Networking & Communication

- [Asynchronous HTTP Clients](https://awesome-repositories.com/f/networking-communication/asynchronous-http-clients.md) — Provides a non-blocking HTTP client for Android to fetch remote data without freezing the user interface. ([source](https://github.com/loopj/android-async-http#readme))
- [HttpClient Wrappers](https://awesome-repositories.com/f/networking-communication/httpclient-wrappers.md) — Simplifies network requests by providing a high-level wrapper around the Apache HttpClient library.
- [Response Decompression](https://awesome-repositories.com/f/networking-communication/http-clients/response-decompression.md) — Automatically decompresses Gzip-encoded response streams to reduce data usage.
- [Network Reliability](https://awesome-repositories.com/f/networking-communication/network-reliability-diagnostics/network-reliability.md) — Improves reliability on unstable mobile connections by automatically retrying failed HTTP requests.

### Data & Databases

- [JSON Parsers](https://awesome-repositories.com/f/data-databases/json-parsers.md) — Converts raw HTTP response text into structured data objects for use within Android applications.

### Development Tools & Productivity

- [JSON Data Parsing](https://awesome-repositories.com/f/development-tools-productivity/code-generators/boilerplate-generators/android/json-data-parsing.md) — Converts server responses into structured data objects within Android applications for data display.

### DevOps & Infrastructure

- [JSON Response Parsers](https://awesome-repositories.com/f/devops-infrastructure/response-parsing-utilities/json-response-parsers.md) — Includes a built-in JSON parser to convert raw HTTP response text into structured data objects. ([source](https://github.com/loopj/android-async-http#readme))
- [Request Retries](https://awesome-repositories.com/f/devops-infrastructure/api-service-management/api-resilience/request-retries.md) — Automatically re-triggers failed network calls based on a predefined maximum attempt limit.

### Mobile Development

- [Android Network Programming](https://awesome-repositories.com/f/mobile-development/android-network-programming.md) — Facilitates non-blocking asynchronous server communication and remote data fetching for Android apps.
- [Network API Wrappers](https://awesome-repositories.com/f/mobile-development/android-system-api-wrappers/network-api-wrappers.md) — Provides an asynchronous HTTP client for Android that simplifies requests by wrapping Apache HttpClient.
- [Session Management](https://awesome-repositories.com/f/mobile-development/android-thread-management/session-management.md) — Maintains user state across multiple network calls by storing and sending HTTP cookies in Android.

### Security & Cryptography

- [HTTP Cookie Persistence](https://awesome-repositories.com/f/security-cryptography/session-persistence-strategies/client-session-persistence/download-session-persistence/http-cookie-persistence.md) — Saves session identifiers to local application storage to maintain user state across app restarts.

### Software Engineering & Architecture

- [Background Thread Dispatchers](https://awesome-repositories.com/f/software-engineering-architecture/background-thread-dispatchers.md) — Offloads network operations to background worker threads to ensure the main user interface remains responsive.

### User Interface & Experience

- [Asynchronous Network Callbacks](https://awesome-repositories.com/f/user-interface-experience/event-handling/asynchronous-network-callbacks.md) — Uses a callback-based system to trigger listener methods once background network requests complete.

### Web Development

- [File Uploads](https://awesome-repositories.com/f/web-development/file-uploads.md) — Enables the transmission of binary data and large files from Android devices via multipart form requests.
- [Multipart Upload Utilities](https://awesome-repositories.com/f/web-development/multipart-upload-utilities.md) — Supports sending binary files and large data payloads using multipart form requests. ([source](https://github.com/loopj/android-async-http#readme))

### Part of an Awesome List

- [Networking Libraries](https://awesome-repositories.com/f/awesome-lists/devtools/networking-libraries.md) — Executes asynchronous, callback-based HTTP requests.
