8000 GitHub - cddc22/Monitor: OkHttp / Retrofit 可视化抓包工具
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ Monitor Public
forked from leavesCZY/Monitor

OkHttp / Retrofit 可视化抓包工具

Notifications You must be signed in to change notification settings

cddc22/Monitor

 
 

Repository files navigation

Monitor

5BD3

只需为 OkHttpClient 添加 MonitorInterceptor,就可以自动记录并缓存所有的网络请求信息,并提供可视化页面进行查看

val okHttpClient = OkHttpClient.Builder()
    .addInterceptor(MonitorInterceptor(context = context))
    .build()

同时引入 debug 和 release 版本的依赖,release 版本的 MonitorInterceptor 不会做任何操作

dependencyResolutionManagement {
    repositories {
        maven {
            setUrl("https://jitpack.io")
        }
    }
}

dependencies {
    val latestVersion = "x.x.x"
    debugImplementation("com.github.leavesCZY.Monitor:monitor:${latestVersion}")
    releaseImplementation("com.github.leavesCZY.Monitor:monitor-no-op:${latestVersion}")
}

About

OkHttp / Retrofit 可视化抓包工具

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Kotlin 100.0%
0