[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-7543":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":23,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":16,"starSnapshotCount":16,"syncStatus":18,"lastSyncTime":29,"discoverSource":30},7543,"Net","liangjingkanji\u002FNet","liangjingkanji","[永久维护] Android 基于协程\u002FOkHttp网络请求工具","http:\u002F\u002Fliangjingkanji.github.io\u002FNet\u002F",null,"Kotlin",2034,239,19,14,0,1,2,29.14,"MIT License",false,"master",true,[25],"okhttp","2026-06-12 02:01:41","\u003Cp >\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fliangjingkanji\u002FNet\">中文\u003C\u002Fa>\n    | \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fliangjingkanji\u002FNet\u002Fblob\u002Fmaster\u002FREADME_EN.md\">English\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fliangjingkanji\u002FNet\u002Fmaster\u002Fdocs\u002Fimg\u002Flogo.gif\" width=\"300\"\u002F>\n\n\u003Cp align=\"center\">\u003Cstrong>基于协程完善的Android网络请求库\u003C\u002Fstrong>\u003C\u002Fp>\n\n\u003Cp align=\"center\">\u003Ca href=\"http:\u002F\u002Fliangjingkanji.github.io\u002FNet\u002F\">使用文档\u003C\u002Fa>\n | \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fliangjingkanji\u002Fdocument\u002Fblob\u002Fmaster\u002Fvisit-pages.md\">无法访问?\u003C\u002Fa>\n | \u003Ca href=\"https:\u002F\u002Fliangjingkanji.github.io\u002Fdocument\u002F\">贡献代码\u003C\u002Fa>\n | \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fliangjingkanji\u002FNet\u002Freleases\u002Flatest\u002Fdownload\u002Fnet-sample.apk\">下载体验\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fliangjingkanji\u002FNet\u002Fmaster\u002Fdocs\u002Fimg\u002Fcode-preview.png\" width=\"400\"\u002F>\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n\u003Ca href=\"https:\u002F\u002Fjitpack.io\u002F#liangjingkanji\u002FNet\">\u003Cimg src=\"https:\u002F\u002Fjitpack.io\u002Fv\u002Fliangjingkanji\u002FNet.svg\"\u002F>\u003C\u002Fa>\n\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flanguage-kotlin-orange.svg\"\u002F>\n\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-blue\"\u002F>\n\u003Ca href=\"https:\u002F\u002Fliangjingkanji.github.io\u002FNet\u002Fapi\u002F\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fapi-%E5%87%BD%E6%95%B0%E6%96%87%E6%A1%A3-red\"\u002F>\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fliangjingkanji\u002Fliangjingkanji\u002Fmaster\u002Fimg\u002Fgroup-qrcode.png\">\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fliangjingkanji\u002Fliangjingkanji\u002Fmaster\u002Fimg\u002Fgroup.svg\"\u002F>\u003C\u002Fa>\n\u003Ca href=\"http:\u002F\u002Fliangjingkanji.github.io\u002FNet\u002Fupdates\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fupdates-%E6%9B%B4%E6%96%B0%E6%97%A5%E5%BF%97-brightgreen\"\u002F>\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fliangjingkanji\u002FNet\u002Fblob\u002Fmaster\u002Fdocs\u002Fissues.md\">\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fliangjingkanji\u002FNet\u002Fmaster\u002Fdocs\u002Fimg\u002Fissues.svg\"\u002F>\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fliangjingkanji\u002FNet\u002Fmaster\u002Fdocs\u002Fimg\u002Fpreview.png\" align=\"center\" width=\"30%;\" \u002F>\u003C\u002Fp>\n\n\u003Cbr>\n\nNet是基于[OkHttp](https:\u002F\u002Fgithub.com\u002Fsquare\u002Fokhttp)\u002F协程的非侵入式框架(可使用所有Api), 可升级OkHttp版本保持网络安全\n\n\u003Cbr>\n\n[Net 1.x](https:\u002F\u002Fgithub.com\u002Fliangjingkanji\u002FNet\u002Ftree\u002F1.x) 版本使用RxJava实现 \u003Cbr>\n[Net 2.x](https:\u002F\u002Fgithub.com\u002Fliangjingkanji\u002FNet\u002Ftree\u002F2.x) 版本使用协程实现 \u003Cbr>\n[Net-okhttp3](https:\u002F\u002Fgithub.com\u002Fliangjingkanji\u002FNet-okhttp3) Net3.x的Android低版本兼容库 \u003Cbr>\n[Net 3.x](https:\u002F\u002Fgithub.com\u002Fliangjingkanji\u002FNet\u002F) 版本使用协程实现, 可自定义OkHttp版本\n\n\u003Cbr>\n\u003Cp align=\"center\">\u003Cstrong>欢迎贡献代码\u002F问题\u003C\u002Fstrong>\u003C\u002Fp>\n\n## 特点\n\n- [x] 开发效率No.1\n- [x] 专为Android而生\n- [x] OkHttp最佳实践\n- [x] 使用高性能Okio\n- [x] 支持OkHttp所有Api\n- [x] 随时升级OkHttp版本保证网络安全性\n- [x] 详细文档\u002F低学习成本\n- [x] 永远保持社区维护\n\n## 主要功能\n\n- [x] 协程并发(不会协程也可上手)\n- [x] 并发\u002F串行\u002F队列\u002F同步请求\n- [x] 快速切换线程\n- [x] 全局错误处理(减少崩溃率)\n- [x] 协程作用域支持错误和结束回调\n- [x] 解析任何数据(json\u002Fprotocol...)的转换器\n- [x] 泛型指定网络请求返回任何类型\n- [x] 自动处理下拉刷新和上拉加载\n- [x] 自动分页加载\n- [x] 自动显示缺省页\n- [x] 自动显示加载对话框\n- [x] 自动取消请求(生命周期)\n- [x] 自动吐司错误信息\n- [x] 自动捕获异常\n- [x] 支持ViewModel\n- [x] Request携带数据(setExtra\u002FtagOf)\n- [x] Request支持Id\u002FGroup分组\n- [x] 日志信息输出(AndroidStudio插件\u002FApp通知栏)\n- [x] 并发请求返回最快请求结果\n- [x] 全局取消请求\n- [x] Https快速配置\n- [x] Cookie持久化管理\n- [x] 定时\u002F限时请求\n- [x] 强制缓存模式\u002F自定义缓存Key\u002F缓存有效期\u002FLRU缓存算法\u002F缓存任何数据\n- [x] 先缓存后网络请求(预览模式)\n- [x] 内置超强轮询器(计时器)\n- [x] 监听上传\u002F下载进度(使用时间, 每秒速度, 剩余时间...)\n\n\u003Cbr>\n\n## 安装\n\nProject 的 settings.gradle 添加仓库\n\n```kotlin\ndependencyResolutionManagement {\n    repositories {\n        \u002F\u002F ...\n        maven { url 'https:\u002F\u002Fjitpack.io' }\n    }\n}\n```\n\nModule 的 build.gradle 添加依赖框架\n\n```groovy\nimplementation \"org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0\" \u002F\u002F 协程(版本自定)\nimplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.0'\nimplementation 'com.squareup.okhttp3:okhttp:4.11.0' \u002F\u002F 要求OkHttp4以上\nimplementation 'com.github.liangjingkanji:Net:3.7.0'\n```\n如果在 Android 5 (API level 21)以下开发, 请使用 [Net-okhttp3](https:\u002F\u002Fgithub.com\u002Fliangjingkanji\u002FNet-okhttp3)\n\u003Cbr>\n\n## Contribute\n\n\u003Cimg src=\"https:\u002F\u002Fs2.loli.net\u002F2022\u002F04\u002F24\u002FqrYuJ5lg67kb31n.jpg\" width=\"100\"\u002F>\n\nsupported by [JetBrains](https:\u002F\u002Fwww.jetbrains.com\u002F)\n\n\n## License\n\n```\nMIT License\n\nCopyright (c) 2023 劉強東\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and\u002For sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","Net 是一个基于协程和 OkHttp 的 Android 网络请求库，旨在提供高效且易于使用的网络请求解决方案。该项目利用 Kotlin 语言编写，支持并发、串行、队列及同步请求等多种模式，并通过协程简化异步编程。其核心功能包括全局错误处理、自动线程切换、数据转换器以及与 ViewModel 的集成等。此外，它还提供了诸如自动分页加载、下拉刷新、上拉加载等功能，能够显著提升开发效率。Net 适用于需要进行复杂网络交互的 Android 应用场景，特别是对性能和安全性有较高要求的应用。","2026-06-11 03:12:58","top_language"]