For the complete documentation index, see llms.txt. This page is also available as Markdown.

Network Calls

Monitor and log Network calls seamlessly with Zipy for enhanced debugging and performance optimization.

Add this interceptor to Http client builder for capturing network calls

import com.zipy.zipyandroid.network.NetworkInterceptor

OkHttpClient.Builder()
      .addInterceptor(NetworkInterceptor())
      .build()

Example:

class NetworkDemoActivity : AppCompatActivity() {
    private lateinit var tvResult: TextView
    private val client by lazy {
        OkHttpClient.Builder()
            .addInterceptor(NetworkInterceptor())
            .build()
}

Last updated