awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
hongyangAndroid avatar

hongyangAndroid/okhttputils

0
View on GitHub↗
6,842 星标·2,367 分支·Java·Apache-2.0·6 次浏览blog.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 历史

hongyangandroid/okhttputils 的 Star 历史图表hongyangandroid/okhttputils 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Okhttputils 的开源替代方案

相似的开源项目,按与 Okhttputils 的功能重合度排序。
  • amitshekhariitbhu/fast-android-networkingamitshekhariitbhu 的头像

    amitshekhariitbhu/Fast-Android-Networking

    5,906在 GitHub 上查看↗

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

    Java
    在 GitHub 上查看↗5,906
  • kittinunf/fuelkittinunf 的头像

    kittinunf/fuel

    4,652在 GitHub 上查看↗

    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
    在 GitHub 上查看↗4,652
  • amitshekhariitbhu/androidnetworkingamitshekhariitbhu 的头像

    amitshekhariitbhu/AndroidNetworking

    5,906在 GitHub 上查看↗

    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
    在 GitHub 上查看↗5,906
  • httpie/desktophttpie 的头像

    httpie/desktop

    3,851在 GitHub 上查看↗

    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
    在 GitHub 上查看↗3,851
查看 Okhttputils 的所有 30 个替代方案→

常见问题解答

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.

hongyangandroid/okhttputils 的主要功能有哪些?

hongyangandroid/okhttputils 的主要功能包括:Android Network Programming, HTTP Client Wrappers, GET Request Executions, POST Request Executions, Tag-Based Cancellations, JSON Request Serializers, Transfer Progress Reporters, Request Cancellations。

hongyangandroid/okhttputils 有哪些开源替代品?

hongyangandroid/okhttputils 的开源替代品包括: 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.