{"id":36707476,"url":"https://github.com/bytebeats/okhttp-analyzer-interceptor","last_synced_at":"2026-01-12T11:44:02.869Z","repository":{"id":45868991,"uuid":"391350950","full_name":"bytebeats/okhttp-analyzer-interceptor","owner":"bytebeats","description":"Android part of the Android Studio(Intellij IDEA) OkHttp Analyzer plugin which would analyze details of requests and responses from OkHttpClient.","archived":false,"fork":false,"pushed_at":"2022-03-03T13:25:29.000Z","size":187,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-08-06T10:51:30.144Z","etag":null,"topics":["android-studio-plugin","coroutine","flow","intellij-plugin","kotlin","mvi-coroutines-flow-kotlin","okhttp","retrofit"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bytebeats.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-31T12:31:36.000Z","updated_at":"2022-05-06T06:08:27.000Z","dependencies_parsed_at":"2022-09-26T22:30:38.491Z","dependency_job_id":null,"html_url":"https://github.com/bytebeats/okhttp-analyzer-interceptor","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/bytebeats/okhttp-analyzer-interceptor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytebeats%2Fokhttp-analyzer-interceptor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytebeats%2Fokhttp-analyzer-interceptor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytebeats%2Fokhttp-analyzer-interceptor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytebeats%2Fokhttp-analyzer-interceptor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bytebeats","download_url":"https://codeload.github.com/bytebeats/okhttp-analyzer-interceptor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytebeats%2Fokhttp-analyzer-interceptor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338972,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T10:58:46.209Z","status":"ssl_error","status_checked_at":"2026-01-12T10:58:42.742Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android-studio-plugin","coroutine","flow","intellij-plugin","kotlin","mvi-coroutines-flow-kotlin","okhttp","retrofit"],"created_at":"2026-01-12T11:44:02.771Z","updated_at":"2026-01-12T11:44:02.862Z","avatar_url":"https://github.com/bytebeats.png","language":"Kotlin","readme":"# okhttp-analyzer-interceptor\n\n[![GitHub latest commit](https://badgen.net/github/last-commit/bytebeats/okhttp-analyzer-interceptor)](https://github.com/bytebeats/okhttp-analyzer-interceptor/commit/)\n[![GitHub contributors](https://img.shields.io/github/contributors/bytebeats/okhttp-analyzer-interceptor.svg)](https://github.com/bytebeats/okhttp-analyzer-interceptor/graphs/contributors/)\n[![GitHub issues](https://img.shields.io/github/issues/bytebeats/okhttp-analyzer-interceptor.svg)](https://github.com/bytebeats/okhttp-analyzer-interceptor/issues/)\n[![Open Source? Yes!](https://badgen.net/badge/Open%20Source%20%3F/Yes%21/blue?icon=github)](https://github.com/bytebeats/okhttp-analyzer-interceptor/)\n[![GitHub forks](https://img.shields.io/github/forks/bytebeats/okhttp-analyzer-interceptor.svg?style=social\u0026label=Fork\u0026maxAge=2592000)](https://github.com/bytebeats/okhttp-analyzer-interceptor/network/)\n[![GitHub stars](https://img.shields.io/github/stars/bytebeats/okhttp-analyzer-interceptor.svg?style=social\u0026label=Star\u0026maxAge=2592000)](https://github.com/bytebeats/okhttp-analyzer-interceptor/stargazers/)\n[![GitHub watchers](https://img.shields.io/github/watchers/bytebeats/okhttp-analyzer-interceptor.svg?style=social\u0026label=Watch\u0026maxAge=2592000)](https://github.com/bytebeats/okhttp-analyzer-interceptor/watchers/)\n\nAn intellij platform plugin. To analyze details of requests and responses from OkHttp.\n\n## Tech stack and why\n* [Kotlin](https://kotlinlang.org/) - Kotlin on Android is a “first-class” language and it has [a lot of benefits](https://developer.android.com/kotlin).\n* [MVVM \u0026 MVI Architecture](https://developer.android.com/jetpack/guide) - Modern, maintainable, and Google suggested app architecture.\n* [Coroutine](https://developer.android.com/kotlin/coroutines) + [Flow](https://developer.android.com/kotlin/flow) = [MVI](https://github.com/Kotlin-Android-Open-Source/MVI-Coroutines-Flow)\n* [Retrofit](https://square.github.io/retrofit/) - Type-safe HTTP client for Android and Java.\n* [OkHttp](https://square.github.io/okhttp/) - Meticulous HTTP client for the JVM, Android, and GraalVM.\n* [Moshi](https://github.com/square/moshi) - Modern JSON library for Android, Java and Kotlin. It makes it easy to parse JSON into Java and Kotlin classes.\n* [Jetpack Components](https://developer.android.com/jetpack) - Compose, ViewModel and more.\n\n## How to use\n\n##### For OkHttp\n\n###### Dependencies\n\n1. add maven url in your root `build.gradle`:\n```\n    repositories {\n       maven { url('https://repo1.maven.org/maven2/') }\n               ...\n    }\n```\n\n2. add dependency in your module `build.gradle`\n```\ndependencies {\n    implementation \"androidx.compose.ui:ui:$compose_version\"\n\n//    implementation project(':interceptors')\n    implementation('io.github.bytebeats:okhttp-analyzer-interceptor:$LATEST_VERSION')//-n means okhttp major version. like 4 means 4.9.3, 3 means 3.14.9\n}\n```\n\nNote: **`LATEST_VERSION`** : 0.1.3-4\n\n###### Java\n```\n    OkHttpClient.Builder builder = new OkHttpClient.Builder();\n     if (BuildConfig.DEBUG) {\n         builder.addInterceptor(new OkHttpAnalyzerInterceptor());\n     }   \n    OkHttpClient client = builder.build();\n``` \n\n###### Kotlin\n```\n    val builder = OkHttpClient.Builder()\n    if (BuildConfig.DEBUG) {\n        builder.addInterceptor(OkHttpAnalyzerInterceptor() )\n    }    \n    val client = builder.build()\n```\n\n##### For Retrofit\n###### Java\n```\n    OkHttpClient.Builder builder = new OkHttpClient.Builder();\n     if (BuildConfig.DEBUG) {\n         builder.addInterceptor(new OkHttpAnalyzerInterceptor());\n     }   \n    OkHttpClient client = builder.build(); \n    Retrofit retrofit = new Retrofit.Builder()\n                ......\n                .client(client)\n                .build();\n```\n\n\n###### Kotlin\n```\n    val builder = OkHttpClient.Builder()\n    if (BuildConfig.DEBUG) {\n        builder.addInterceptor( OkHttpAnalyzerInterceptor() )\n    }    \n    val client = builder.build()\n    val retrofit = Retrofit.Builder()\n            ......\n            .client(client)\n            .build()\n```\n\n## Stargazers over time\n\n[![Stargazers over time](https://starchart.cc/bytebeats/okhttp-analyzer-interceptor.svg)](https://starchart.cc/bytebeats/okhttp-analyzer-interceptor)\n\n## Github Stars Sparklines\n\n[![Sparkline](https://stars.medv.io/bytebeats/okhttp-analyzer-interceptor.svg)](https://stars.medv.io/bytebeats/okhttp-analyzer-interceptor)\n\n## Contributors\n\n[![Contributors over time](https://contributor-graph-api.apiseven.com/contributors-svg?chart=contributorOverTime\u0026repo=bytebeats/okhttp-analyzer-interceptor)](https://www.apiseven.com/en/contributor-graph?chart=contributorOverTime\u0026repo=bytebeats/okhttp-analyzer-interceptor)\n\n## MIT License\n\n    Copyright (c) 2021 Chen Pan\n\n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to deal\n    in the Software without restriction, including without limitation the rights\n    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n    copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in all\n    copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n    SOFTWARE.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytebeats%2Fokhttp-analyzer-interceptor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbytebeats%2Fokhttp-analyzer-interceptor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytebeats%2Fokhttp-analyzer-interceptor/lists"}