awesome-repositories.com
Blog
awesome-repositories.com

Entdecke die besten Open-Source-Repositories mit KI-gestützter Suche.

EntdeckenKuratierte SuchenOpen-Source-AlternativenSelf-hosted SoftwareBlogSitemap
ProjektÜber unsRanking-MethodikPresseMCP-Server
RechtlichesDatenschutzAGB
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
hongyangAndroid avatar

hongyangAndroid/okhttputils

0
View on GitHub↗
6,842 Stars·2,367 Forks·Java·Apache-2.0·2 Aufrufeblog.csdn.net/lmj623565791/article/details/47911083↗

Okhttputils

OkHttpUtils is a convenience wrapper for the OkHttp HTTP client that simplifies common networking operations on Android. It provides a straightforward interface for executing GET and POST requests, including sending form parameters and JSON payloads, as well as uploading files via multipart form data and downloading remote files to local storage.

The library distinguishes itself through a set of practical utilities built on top of OkHttp's core architecture. It wraps synchronous calls into an asynchronous callback pattern, includes an interceptor-based logging layer for request and response details, and offers a custom SSL trust manager for handling self-signed or custom certificates. Cookie persistence is handled via an interceptor that saves session and persistent cookies to disk, while file transfers are augmented with progress reporting that tracks upload and download progress as a decimal ratio. Request lifecycle control is provided through tag-based cancellation, allowing active HTTP requests to be grouped and cancelled together.

Additional capabilities include a JSON body serialization helper for POST requests, a multipart form data builder for constructing complex uploads, and the ability to fetch and display remote images as bitmaps. The library also supports configuring HTTPS connections with custom certificates and persisting cookies across application restarts to maintain session state.

Features

  • Android Network Programming - Provides an Android HTTP networking wrapper for GET, POST, JSON, and multipart uploads.
  • HTTP Client Wrappers - Ships a convenience wrapper that simplifies common HTTP operations like GET, POST, file upload, and download using OkHttp.
  • GET Request Executions - Provides a primary interface for executing HTTP GET requests with query parameters.
  • POST Request Executions - Provides a primary interface for executing HTTP POST requests with form parameters.
  • Tag-Based Cancellations - Provides tag-based request cancellation to prevent network leaks when Android components are destroyed.
  • JSON Request Serializers - Serializes Java objects into JSON request bodies for HTTP POST requests.
  • Transfer Progress Reporters - Reports upload and download progress as a decimal ratio via stream wrappers.
  • Request Cancellations - Cancels active HTTP requests grouped by a user-assigned tag for lifecycle management.
  • Progress-Tracking File Downloads - Downloads files from URLs to local storage with progress tracking and cancellation.
  • URL File Downloads - Downloads files from URLs to local storage with progress tracking and cancellation support.
  • Decimal Progress Reports - Reports file upload and download progress as a decimal value between zero and one.
  • Development SSL Certificates - Handles custom or self-signed SSL certificates for secure Android network connections.
  • Session-Cookie Persistences - Persists session and persistent cookies to disk via an OkHttp interceptor.
  • HTTP Cookie Persistence - Persists cookies across app restarts to maintain session state in Android HTTP clients.
  • Custom Trust Managers - Configures HTTPS connections to accept self-signed or custom SSL certificates via a custom trust manager.
  • SSL Certificate Validation Overrides - Overrides default SSL verification with a custom trust manager for self-signed certificates.
  • Interceptor-Based Loggers - Logs HTTP request and response details using an interceptor-based logging layer.
  • Multipart Form Uploads - Uploads files via multipart form POST requests with progress reporting.
  • Request-Response Interceptors - Logs HTTP request and response details via a custom OkHttp interceptor.

Star-Verlauf

Star-Verlauf für hongyangandroid/okhttputilsStar-Verlauf für hongyangandroid/okhttputils

KI-Suche

Entdecke weitere awesome Repositories

Beschreibe in einfachen Worten, was du brauchst — die KI bewertet tausende kuratierte Open-Source-Projekte nach Relevanz.

Start searching with AI

Open-Source-Alternativen zu Okhttputils

Ähnliche Open-Source-Projekte, sortiert nach der Anzahl der gemeinsamen Funktionen mit Okhttputils.
  • amitshekhariitbhu/fast-android-networkingAvatar von amitshekhariitbhu

    amitshekhariitbhu/Fast-Android-Networking

    5,906Auf GitHub ansehen↗

    🚀 A Complete Fast Android Networking Library that also supports HTTP/2 🚀

    Java
    Auf GitHub ansehen↗5,906
  • kittinunf/fuelAvatar von kittinunf

    kittinunf/fuel

    4,652Auf GitHub ansehen↗

    Fuel is a Kotlin HTTP client library for Android and Kotlin applications that handles both synchronous and asynchronous web requests. It functions as a network wrapper that supports executing calls via suspending functions in coroutines, reactive streams, and traditional callbacks. The library features built-in integration for Android LiveData to bind network responses directly to observable state holders for user interface updates. It also includes a JSON serialization client that utilizes customizable mappers to convert raw HTTP response bodies into structured data objects. Capability area

    Kotlinandroidhttp-clientkotlin
    Auf GitHub ansehen↗4,652
  • amitshekhariitbhu/androidnetworkingAvatar von amitshekhariitbhu

    amitshekhariitbhu/AndroidNetworking

    5,906Auf GitHub ansehen↗

    AndroidNetworking is an HTTP networking library for Android that handles the full lifecycle of network communication, from sending requests to parsing responses and caching data. It provides a unified interface for executing GET, POST, PUT, DELETE, HEAD, and PATCH requests, with support for both synchronous and asynchronous execution, and includes built-in JSON response parsing that converts server responses directly into Java objects or lists. The library distinguishes itself through a set of integrated capabilities that go beyond basic request execution. It manages file downloads and upload

    Java
    Auf GitHub ansehen↗5,906
  • httpie/desktopAvatar von httpie

    httpie/desktop

    3,851Auf GitHub ansehen↗

    This is a desktop HTTP client application used for constructing, sending, and analyzing HTTP and GraphQL requests. It provides a graphical interface for API development and testing, including a dedicated GraphQL client with schema-driven autocomplete and validation. The project features an integrated AI assistant that generates API requests from natural language prompts. It supports a complex organization system of spaces and collections with hierarchical authentication inheritance and recursive variable resolution for dynamic request values. The tool covers a broad range of capabilities, in

    apiapi-clientapi-testing
    Auf GitHub ansehen↗3,851
Alle 30 Alternativen zu Okhttputils anzeigen→

Häufig gestellte Fragen

Was macht hongyangandroid/okhttputils?

OkHttpUtils is a convenience wrapper for the OkHttp HTTP client that simplifies common networking operations on Android. It provides a straightforward interface for executing GET and POST requests, including sending form parameters and JSON payloads, as well as uploading files via multipart form data and downloading remote files to local storage.

Was sind die Hauptfunktionen von hongyangandroid/okhttputils?

Die Hauptfunktionen von hongyangandroid/okhttputils sind: Android Network Programming, HTTP Client Wrappers, GET Request Executions, POST Request Executions, Tag-Based Cancellations, JSON Request Serializers, Transfer Progress Reporters, Request Cancellations.

Welche Open-Source-Alternativen gibt es zu hongyangandroid/okhttputils?

Open-Source-Alternativen zu hongyangandroid/okhttputils sind unter anderem: amitshekhariitbhu/fast-android-networking — 🚀 A Complete Fast Android Networking Library that also supports HTTP/2 🚀. kittinunf/fuel — Fuel is a Kotlin HTTP client library for Android and Kotlin applications that handles both synchronous and… amitshekhariitbhu/androidnetworking — AndroidNetworking is an HTTP networking library for Android that handles the full lifecycle of network communication,… httpie/desktop — This is a desktop HTTP client application used for constructing, sending, and analyzing HTTP and GraphQL requests. It… mzabriskie/axios — Axios is a promise-based HTTP client used to make asynchronous network requests in both browser and Node.js… sindresorhus/ky — 🌳 Tiny & elegant JavaScript HTTP client based on the Fetch API.