Tagged articles
50 articles
Page 1 of 1
Architect's Guide
Architect's Guide
May 15, 2026 · Backend Development

One‑Line HTTP Requests with OKHttpUtil: A Minimal Java Wrapper

The article introduces OKHttpUtil, a lightweight wrapper around Square’s OkHttp library that enables Java developers to perform HTTP GET, POST, file upload, and download operations with a single line of code, includes Maven setup, Spring Boot integration, fluent API usage, and examples of wrapping external services such as eBay.

API wrapperHTTP clientHTTP request
0 likes · 10 min read
One‑Line HTTP Requests with OKHttpUtil: A Minimal Java Wrapper
Alibaba Cloud Observability
Alibaba Cloud Observability
Mar 30, 2026 · Mobile Development

Why Your Android App’s Network Requests Stall and How RUM Reveals the Fix

The article explains how mobile network performance issues—especially long connection‑pool wait times—cause slow page loads in Android apps, demonstrates how to interpret Alibaba Cloud RUM’s Resource event metrics and timing data, walks through a real‑world case study with detailed stage‑by‑stage analysis, and provides concrete diagnostic steps and optimization recommendations for OkHttp connection‑pool configuration and other common bottlenecks.

AndroidConnection PoolMobile Development
0 likes · 16 min read
Why Your Android App’s Network Requests Stall and How RUM Reveals the Fix
Alibaba Cloud Native
Alibaba Cloud Native
Mar 24, 2026 · Mobile Development

Why Your Android App Is Slow: Uncovering Hidden Network Bottlenecks with RUM

This article explains how mobile network diversity, device fragmentation, and limited visibility make performance troubleshooting hard, then introduces Alibaba Cloud RUM's Resource event model, walks through its attribute and metric fields, demonstrates a real‑world Android case study with step‑by‑step timing analysis, and provides concrete diagnosis and optimization guidelines for connection‑pool, DNS, SSL, and TTFB issues.

AndroidOkHttpPerformance Monitoring
0 likes · 18 min read
Why Your Android App Is Slow: Uncovering Hidden Network Bottlenecks with RUM
vivo Internet Technology
vivo Internet Technology
Feb 11, 2026 · Mobile Development

How Vivo Game Center Boosted Weak‑Network Performance with QUIC and Cronet

This article details how the Vivo Game Center team tackled slow page loads and resource failures in weak‑network environments by integrating the QUIC‑enabled Cronet library into OkHttp, defining precise network states, using custom interceptors, and conducting A/B tests that reduced failure rates by 40% and cut request latency by 7%.

AndroidCronetOkHttp
0 likes · 16 min read
How Vivo Game Center Boosted Weak‑Network Performance with QUIC and Cronet
Architect's Guide
Architect's Guide
Jul 23, 2025 · Backend Development

Simplify HTTP Calls in Java with OKHttpUtil: A Complete Guide

This article introduces OKHttpUtil, a lightweight Java HTTP client wrapper, outlines its key features, provides Maven setup and code examples for GET, POST, file upload/download, demonstrates fluent HttpRequest usage, shows Spring Boot integration, and explains how to quickly encapsulate external APIs such as eBay.

API wrapperHTTP clientOkHttp
0 likes · 9 min read
Simplify HTTP Calls in Java with OKHttpUtil: A Complete Guide
Code Ape Tech Column
Code Ape Tech Column
Jul 12, 2025 · Backend Development

Mastering OKHttpUtil: Simplify Java HTTP Requests with Ready‑to‑Use Code

This article introduces the lightweight OKHttpUtil wrapper for Java and Kotlin, outlines its key features such as automatic protocol detection, cookie handling, proxy and header configuration, GZIP decompression, and Spring Boot integration, and provides comprehensive code examples for GET, POST, file upload, download, chained requests, and custom API client creation.

APIHTTPJava
0 likes · 10 min read
Mastering OKHttpUtil: Simplify Java HTTP Requests with Ready‑to‑Use Code
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 16, 2024 · Backend Development

Master Java HTTP Clients: From HttpClient to OkHttp and WebClient

This article introduces four Java HTTP client libraries—Java HttpClient, Apache HttpComponents, OkHttp, and Spring WebClient—explains their key features, provides async GET and sync POST code examples for each, and offers guidance on selecting the right client for Spring Boot and plain Java projects.

Apache HttpClientHTTP clientOkHttp
0 likes · 14 min read
Master Java HTTP Clients: From HttpClient to OkHttp and WebClient
Java Architecture Diary
Java Architecture Diary
Jan 10, 2024 · Backend Development

Boost Your Java HTTP Calls with mica-http: Fast, Fluent, and Secure

This article introduces mica-http, a lightweight Fluent‑style HTTP client built on OkHttp, walks through dependency setup, synchronous and asynchronous usage, global logging, custom client and cookie management, presents performance benchmarks, and highlights its automatic resource handling for safe, high‑performance requests.

Fluent APIHTTPOkHttp
0 likes · 7 min read
Boost Your Java HTTP Calls with mica-http: Fast, Fluent, and Secure
Java Architect Essentials
Java Architect Essentials
Nov 28, 2023 · Backend Development

Various Ways to Send HTTP Requests in Java

This article introduces multiple Java approaches for sending HTTP GET and POST requests, covering the built‑in HttpURLConnection class, Apache HttpClient, Square's OkHttp, and Spring's RestTemplate, with step‑by‑step explanations and complete code examples for each method.

BackendHTTPHttpClient
0 likes · 8 min read
Various Ways to Send HTTP Requests in Java
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Oct 20, 2023 · Mobile Development

How to Seamlessly Replace OkHttp with Cronet on Android

This article details the motivation, architecture, and step‑by‑step integration of Google’s Cronet network library into NetEase Cloud Music’s Android client, covering adaptation layers, interceptor handling, timeout support, compatibility fixes, performance gains, and future QUIC enhancements.

AndroidCronetNetwork Library
0 likes · 15 min read
How to Seamlessly Replace OkHttp with Cronet on Android
Architect
Architect
Oct 8, 2023 · Backend Development

Deep Dive into OkHttp: Core Principles, Interceptor Chain, and Practical Usage

This article provides a comprehensive analysis of OkHttp’s source code, explaining its request‑execution flow, layered architecture, interceptor chain design, and demonstrates how to implement custom interceptors for unified request handling in Java and Android projects.

AndroidDesignPatternHTTP
0 likes · 15 min read
Deep Dive into OkHttp: Core Principles, Interceptor Chain, and Practical Usage
Huolala Tech
Huolala Tech
Sep 12, 2023 · Mobile Development

Mastering Gradle: Lifecycle, Tasks, and Plugin Development for Android

This comprehensive guide walks through Gradle fundamentals—including the initialization, configuration, and execution phases—explains task creation, ordering, and incremental builds, demonstrates custom tasks and small examples, and shows three ways to build and publish Gradle plugins with ASM bytecode instrumentation for Android projects.

ASMAndroidBuild Automation
0 likes · 16 min read
Mastering Gradle: Lifecycle, Tasks, and Plugin Development for Android
vivo Internet Technology
vivo Internet Technology
May 17, 2023 · Mobile Development

Deep Dive into OkHttp: Core Principles, Interceptor Chain, and Practical Usage

By dissecting OkHttp’s source, the article explains its layered architecture, the interceptor‑chain implementation of the Chain‑of‑Responsibility pattern, and shows how developers can add custom interceptors—such as authentication headers—to uniformly handle requests, retries, caching, and network I/O in Java and Android.

AndroidDesign PatternsHTTP
0 likes · 16 min read
Deep Dive into OkHttp: Core Principles, Interceptor Chain, and Practical Usage
Architect's Guide
Architect's Guide
May 14, 2023 · Backend Development

OKHttpUtil: A Lightweight HTTP Client Wrapper for Java and Spring Boot

This article introduces OKHttpUtil, a concise Java wrapper for the OkHttp library, outlines its key features, provides Maven dependency instructions, demonstrates GET, POST, file upload, download, and chained request usage, and shows how to integrate and configure it in Spring Boot as well as quickly build external API clients such as eBay.

API wrapperBackend DevelopmentHTTP client
0 likes · 11 min read
OKHttpUtil: A Lightweight HTTP Client Wrapper for Java and Spring Boot
HaoDF Tech Team
HaoDF Tech Team
Feb 2, 2023 · Mobile Development

Android Client Network Optimization: Framework Unification, HttpDns Integration, and Performance Enhancements

This article details how an Android team unified multiple network libraries into OkHttp, integrated HttpDns to bypass carrier DNS hijacking, migrated to HTTPS and HTTP/2, and applied a series of performance and security optimizations that markedly improved request speed, reliability, and user experience across diverse mobile network conditions.

AndroidHTTP2HTTPDNS
0 likes · 22 min read
Android Client Network Optimization: Framework Unification, HttpDns Integration, and Performance Enhancements
Code Ape Tech Column
Code Ape Tech Column
Nov 29, 2022 · Backend Development

Simplified HTTP Requests with OKHttpUtil in Java and Spring Boot

This article introduces OKHttpUtil, a lightweight wrapper for OkHttp that simplifies HTTP GET, POST, file upload/download, and chainable requests in Java, provides Maven integration, Spring Boot configuration, and demonstrates how to encapsulate external APIs such as eBay with concise code examples.

API wrapperHTTP clientJava
0 likes · 10 min read
Simplified HTTP Requests with OKHttpUtil in Java and Spring Boot
Sohu Tech Products
Sohu Tech Products
Nov 9, 2022 · Mobile Development

Integrating AndroidMonitor for In‑App Network Packet Capture on Android

This article introduces AndroidMonitor, a lightweight Android packet‑capture library, explains how to add its monitor and monitor‑plugin dependencies, configure ProGuard, customize entry names, ports and logos, and optionally use AndroidLocalService to expose captured data via a local socket for both mobile and PC UI visualization.

AndroidKotlinLocal Service
0 likes · 9 min read
Integrating AndroidMonitor for In‑App Network Packet Capture on Android
Selected Java Interview Questions
Selected Java Interview Questions
Sep 6, 2022 · Backend Development

Various Ways to Call Third‑Party HTTP APIs in Java

This article explains multiple approaches for invoking third‑party HTTP APIs in Java, covering JDK HttpURLConnection, Apache HttpClient, CloseableHttpClient, SpringBoot RestTemplate, and OkHttp, with detailed code examples, configuration steps, and usage patterns for GET and POST requests.

APIHTTPHttpClient
0 likes · 27 min read
Various Ways to Call Third‑Party HTTP APIs in Java
Top Architect
Top Architect
Aug 29, 2022 · Mobile Development

Understanding OkHttp: Request Flow, Dispatcher, Interceptors, Connection Reuse, and Design Patterns

This article provides a comprehensive overview of OkHttp, covering its overall request process, the role of the dispatcher, how application and network interceptors work, TCP connection reuse via the connection pool, idle‑connection cleanup, key advantages, and the design patterns employed in the framework.

AndroidConnection PoolDesign Patterns
0 likes · 15 min read
Understanding OkHttp: Request Flow, Dispatcher, Interceptors, Connection Reuse, and Design Patterns
Beike Product & Technology
Beike Product & Technology
Apr 8, 2022 · Mobile Development

Design and Implementation of a Non‑Intrusive Page Network Request Preloading Framework for Android

The article presents a non‑intrusive Android framework that preloads page network requests in parallel with page initialization, describing its three‑part architecture, routing and network interceptors, code implementation, and performance gains that can reduce overall page load time by up to 100 ms.

Network PreloadingOkHttpRetrofit
0 likes · 12 min read
Design and Implementation of a Non‑Intrusive Page Network Request Preloading Framework for Android
Snowball Engineer Team
Snowball Engineer Team
Oct 28, 2021 · Mobile Development

Redesigning Snowball's Android Network Framework with OkHttp and Retrofit: Architecture, Issues, and Migration

This article details the redesign of Snowball's Android network framework using OkHttp and Retrofit, covering motivations, architectural layers, solutions for domain switching, custom annotations, data validation, migration strategy, and the resulting performance and maintainability improvements.

AndroidKotlinOkHttp
0 likes · 17 min read
Redesigning Snowball's Android Network Framework with OkHttp and Retrofit: Architecture, Issues, and Migration
Sohu Tech Products
Sohu Tech Products
Jul 14, 2021 · Mobile Development

Resolving IllegalStateException: closed During Android File Upload with RxHttp and OkHttp

This article details a real‑world Android file‑upload failure caused by the Android Studio Profiler’s OkHttp3Interceptor closing the request’s BufferedSink, explains the debugging steps taken, and provides code modifications to the ProgressRequestBody to prevent the IllegalStateException and ensure correct upload progress tracking.

AndroidNetwork InterceptorOkHttp
0 likes · 14 min read
Resolving IllegalStateException: closed During Android File Upload with RxHttp and OkHttp
vivo Internet Technology
vivo Internet Technology
Jun 9, 2021 · Mobile Development

HTTP Connection Reuse Optimization in OkHttp:原理与实践

The article explains how reusing HTTP connections with OkHttp—by leveraging persistent HTTP/1.1, multiplexed HTTP/2, and pre‑established sockets—dramatically cuts latency, details the underlying ConnectInterceptor and ConnectionPool implementation, and recommends enlarging the pool and adjusting keep‑alive settings to suit multi‑domain, high‑concurrency apps.

ConnectionPoolHTTP connection reuseHTTP/2
0 likes · 15 min read
HTTP Connection Reuse Optimization in OkHttp:原理与实践
macrozheng
macrozheng
Apr 23, 2021 · Backend Development

Mastering Spring Cloud Square: A Modern Alternative to Feign for Service Calls

Spring Cloud Square, built on Retrofit and OkHttp, offers a lightweight replacement for Spring Cloud Feign, simplifying cross-service calls with declarative clients, load‑balancing support, and easy Maven integration, and this guide walks you through setup, configuration, and advanced usage examples.

Feign alternativeJavaMicroservices
0 likes · 7 min read
Mastering Spring Cloud Square: A Modern Alternative to Feign for Service Calls
Youzan Coder
Youzan Coder
Mar 26, 2021 · Mobile Development

Dynamic Domain Name Implementation in Mobile Apps

The article explains how to implement dynamic domain name switching in mobile apps across iOS, Android, Flutter, and H5 by using a configuration center and native network interception techniques such as NSURLProtocol, OkHttp instrumentation, texture bridging, and frontend configuration to resolve regional DNS issues and enable extended features like request statistics and custom responses.

AndroidDynamic DomainFlutter
0 likes · 10 min read
Dynamic Domain Name Implementation in Mobile Apps
Sohu Tech Products
Sohu Tech Products
Mar 3, 2021 · Mobile Development

How Retrofit Handles Kotlin suspend Functions

This article explains how Retrofit 2.6.0 adds support for Kotlin suspend functions by detecting the Continuation parameter, determining the return type, and generating appropriate CallAdapter implementations such as SuspendForResponse and SuspendForBody to integrate coroutine handling with OkHttp.

CallAdapterCoroutinesKotlin
0 likes · 12 min read
How Retrofit Handles Kotlin suspend Functions
Sohu Tech Products
Sohu Tech Products
Jan 20, 2021 · Mobile Development

OkOne: An Unintrusive OkHttp Performance Optimization Framework for Android

This article introduces OkOne, a lightweight framework built on OkHttp that centralizes client management to reduce redundant instances, demonstrates step‑by‑step integration, shows performance gains through instance and connection reuse, and explores advanced features such as pre‑connect and detailed internal mechanisms.

Connection PoolOkHttpOkOne
0 likes · 13 min read
OkOne: An Unintrusive OkHttp Performance Optimization Framework for Android
The Dominant Programmer
The Dominant Programmer
Dec 3, 2020 · Mobile Development

Implementing Android App Update with SpringBoot Backend and Vue Frontend

The article walks through a complete Android app update workflow where an administrator uploads an APK via a Vue front‑end to a SpringBoot service, the backend stores version data, and the Android client periodically checks for newer versions, downloads the APK using a Service and OkHttp, and installs it automatically.

AndroidApp UpdateFileProvider
0 likes · 37 min read
Implementing Android App Update with SpringBoot Backend and Vue Frontend
Qunar Tech Salon
Qunar Tech Salon
Dec 1, 2020 · Information Security

Bypassing and Defending HTTPS Certificate Verification in Android Apps

This article explains the mechanisms of HTTPS certificate verification in Android, outlines various implementation methods, demonstrates how to bypass verification using tools like JustTrustMe and SSLkiller, and provides detection and protection strategies for developers to safeguard their apps against such attacks.

AndroidCertificate VerificationHTTPS
0 likes · 9 min read
Bypassing and Defending HTTPS Certificate Verification in Android Apps
Beike Product & Technology
Beike Product & Technology
Nov 13, 2020 · Mobile Development

Designing a Network Framework from Scratch and Analyzing OkHttp & Retrofit Implementations

This article explains how to design a network framework from the ground up, explores the three‑layer understanding of frameworks, details the core components, thread scheduling, request/response processing chains, and then deep‑dives into OkHttp and Retrofit implementations, their limitations, and extensibility techniques.

Design PatternsInterceptorNetwork Framework
0 likes · 15 min read
Designing a Network Framework from Scratch and Analyzing OkHttp & Retrofit Implementations
Top Architect
Top Architect
Sep 21, 2020 · Backend Development

Comparative Overview of Java HTTP Client Libraries: HttpURLConnection, Apache HttpComponents, Java 9 HttpClient, and OkHttp

This article compares four Java HTTP client options—HttpURLConnection, Apache HttpComponents HttpClient, the Java 9 HttpClient, and OkHttp—detailing their features, code examples, configuration capabilities, and suitability for projects that need connection pooling, DNS control, form/JSON support, and synchronous or asynchronous calls.

Apache HttpComponentsHTTPHttpClient
0 likes · 14 min read
Comparative Overview of Java HTTP Client Libraries: HttpURLConnection, Apache HttpComponents, Java 9 HttpClient, and OkHttp
vivo Internet Technology
vivo Internet Technology
Sep 2, 2020 · Fundamentals

Understanding DNS and WebSocket: From Dig Commands to Real‑Time Connections

This article provides a systematic, hands‑on guide to DNS fundamentals—including dig queries, hierarchical lookups, Wireshark packet analysis, traditional DNS drawbacks, and HTTPDNS solutions—followed by a deep dive into WebSocket mechanics, handshake, frame structure, and security considerations, all illustrated with practical examples and code.

DNSHTTPDNSNetwork Protocols
0 likes · 21 min read
Understanding DNS and WebSocket: From Dig Commands to Real‑Time Connections
Architecture Digest
Architecture Digest
Nov 28, 2019 · Mobile Development

Designing Entity Classes and Architecture for Small Android Apps

This article shares practical experiences and techniques for Android app development, covering entity class organization, graceful network data handling with Retrofit, robust repository patterns, and clean UI layering using MVVM, DataBinding, and LiveData.

AndroidDataBindingEntity Design
0 likes · 8 min read
Designing Entity Classes and Architecture for Small Android Apps
vivo Internet Technology
vivo Internet Technology
Oct 9, 2019 · Fundamentals

Web Protocol Deep Dive: Chrome Network Panel, Connection Keep-Alive, Head‑of‑Line Blocking, and HTTP Body Transfer

The series teaches mobile developers how to use Chrome’s Network panel and Wireshark, explains connection keep-alive, demonstrates HTTP 1.x head-of-line blocking with Go and OkHttp, and clarifies fixed-length versus chunked body transfer, providing practical code and traffic analysis for deeper protocol understanding.

Chrome NetworkGoHTTP
0 likes · 28 min read
Web Protocol Deep Dive: Chrome Network Panel, Connection Keep-Alive, Head‑of‑Line Blocking, and HTTP Body Transfer
Java Architecture Diary
Java Architecture Diary
Aug 1, 2019 · Backend Development

Mastering mica-http: Fluent HTTP Requests with OkHttp Wrapper

mica-http is a Java wrapper for OkHttp that offers a fluent‑style HTTP client, showing Maven/Gradle integration, global logging configuration, synchronous and asynchronous request examples, and advanced features like header, cookie, query, form handling, and response processing with Jackson and Jsoup.

Fluent APIHTTPJava
0 likes · 6 min read
Mastering mica-http: Fluent HTTP Requests with OkHttp Wrapper
Qunar Tech Salon
Qunar Tech Salon
May 9, 2019 · Mobile Development

Deep Dive into ASM for Android Bytecode Instrumentation and OkHttp Monitoring

This article explains how to use ASM to instrument Android bytecode for automatic click event tracking and OkHttp network request monitoring, detailing the Transform API, AOP/ASM techniques, custom ClassVisitor and MethodVisitor implementations, code injection strategies, and provides a complete open‑source example on GitHub.

ASMAndroidOkHttp
0 likes · 13 min read
Deep Dive into ASM for Android Bytecode Instrumentation and OkHttp Monitoring
dbaplus Community
dbaplus Community
May 6, 2019 · Mobile Development

How Ele.me’s Rider App Achieves End‑to‑End Business Availability Monitoring

This article details Ele.me Logistics' mobile‑app monitoring architecture—E‑Monitor, TimeBomb, Dogger, and EDW—explaining how each layer collects, visualizes, and analyzes business‑level availability data, and showcases a real‑world debugging case that leveraged the stack to resolve an HTTP/2 connectivity bug.

AndroidOkHttpPerformance Optimization
0 likes · 16 min read
How Ele.me’s Rider App Achieves End‑to‑End Business Availability Monitoring
Programmer DD
Programmer DD
May 3, 2018 · Backend Development

Why Your Encrypted Config Loses ‘+’ and ‘=’ with curl – and How to Fix It

When using Spring Cloud Config's encryption/decryption endpoints via curl, special characters such as '+' and '=' can disappear because curl's default -d option does not URL‑encode the payload, but using --data-urlencode or setting the proper Content-Type header preserves these characters and ensures correct encryption and decryption.

Config ServerJavaOkHttp
0 likes · 4 min read
Why Your Encrypted Config Loses ‘+’ and ‘=’ with curl – and How to Fix It
Tencent TDS Service
Tencent TDS Service
Jun 2, 2016 · Mobile Development

Master Retrofit: From Basics to Advanced Customizations in Android

This comprehensive guide walks Android developers through Retrofit’s fundamentals, usage patterns, URL configuration, parameter handling, custom converters, call adapters, and advanced techniques like file uploads, mock servers, and RxJava integration, providing code examples and deep insights to master network requests efficiently.

AndroidCustom ConverterMock Server
0 likes · 22 min read
Master Retrofit: From Basics to Advanced Customizations in Android