Skip to content
基于OKHttp的实用抓包小工具,你值得拥有
Java
Branch: master
Clone or download
Latest commit f2da88b Dec 3, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app update readme Dec 2, 2019
gradle/wrapper Push Code To Github Dec 2, 2019
library update library Dec 2, 2019
library_no_op update library Dec 2, 2019
screen update readme Dec 2, 2019
.gitignore Push Code To Github Dec 2, 2019
LICENSE Initial commit Dec 2, 2019
README.md update readme Dec 3, 2019
build.gradle update readme Dec 2, 2019
gradle.properties Push Code To Github Dec 2, 2019
gradlew Push Code To Github Dec 2, 2019
gradlew.bat Push Code To Github Dec 2, 2019
settings.gradle Push Code To Github Dec 2, 2019

README.md

概览

一个基于OKHttp的实用抓包小工具

工具界面截图

支持功能

  • 自带分类接口
  • 抓包数据以时间为纬度,默认存储到手机缓存下 /Android/Data/包名/Cache/capture/ 下
  • 支持Http/Https协议的抓包,分类请求方式/请求URL/请求Header/请求体/响应状态/响应Header/响应体
  • 支持一键复制对应的状态
  • 响应体如果是JSON,支持自动格式化
  • 抓包数据,默认缓存一天

快速接入

allprojects {
	repositories {
	   maven { url 'https://jitpack.io' }
	}
}

dependencies {
    debugImplementation 'com.github.DingProg.NetworkCaptureSelf:library:v1.0.1'
    releaseImplementation 'com.github.DingProg.NetworkCaptureSelf:library_no_op:v1.0.1'
}

在你的全局OkHttp中添加 Interceptor

new OkHttpClient.Builder()
        .addInterceptor(new CaptureInfoInterceptor())
        .build();

注意事项

注意接入时 debugImplementation 和 releaseImplementation区别,releaseImplementation中不包含任何其他代码

如果您的项目中还有buildType 是develop,那么developImplementation 请依赖 'com.github.DingProg.NetworkCaptureSelf:library:v1.0.1'

More

关于更多,请查看 Blog

You can’t perform that action at this time.