drake 4 anni fa
parent
commit
bab3e5344e
100 ha cambiato i file con 923 aggiunte e 350 eliminazioni
  1. 1 1
      LICENSE
  2. 34 42
      README.md
  3. 5 3
      build.gradle
  4. 177 36
      docs/api/net/alltypes/index.md
  5. 10 0
      docs/api/net/androidx.lifecycle/index.md
  6. 8 0
      docs/api/net/androidx.lifecycle/scope-life.md
  7. 9 0
      docs/api/net/androidx.lifecycle/scope-net-life.md
  8. 5 0
      docs/api/net/com.drake.net.body/-net-request-body/-init-.md
  9. 6 0
      docs/api/net/com.drake.net.body/-net-request-body/content-length.md
  10. 5 0
      docs/api/net/com.drake.net.body/-net-request-body/content-type.md
  11. 26 0
      docs/api/net/com.drake.net.body/-net-request-body/index.md
  12. 5 0
      docs/api/net/com.drake.net.body/-net-request-body/to-string.md
  13. 5 0
      docs/api/net/com.drake.net.body/-net-request-body/write-to.md
  14. 5 0
      docs/api/net/com.drake.net.body/-net-response-body/-init-.md
  15. 5 0
      docs/api/net/com.drake.net.body/-net-response-body/content-length.md
  16. 5 0
      docs/api/net/com.drake.net.body/-net-response-body/content-type.md
  17. 19 0
      docs/api/net/com.drake.net.body/-net-response-body/index.md
  18. 5 0
      docs/api/net/com.drake.net.body/-net-response-body/source.md
  19. 17 0
      docs/api/net/com.drake.net.body/index.md
  20. 5 0
      docs/api/net/com.drake.net.body/okhttp3.-request-body/add-listener.md
  21. 7 0
      docs/api/net/com.drake.net.body/okhttp3.-request-body/index.md
  22. 5 0
      docs/api/net/com.drake.net.body/okhttp3.-response-body/add-listener.md
  23. 7 0
      docs/api/net/com.drake.net.body/okhttp3.-response-body/index.md
  24. 5 0
      docs/api/net/com.drake.net.cache/-cache/-c-a-c-h-e.md
  25. 5 0
      docs/api/net/com.drake.net.cache/-cache/-h-e-a-d-e-r.md
  26. 5 0
      docs/api/net/com.drake.net.cache/-cache/-n-o-n-e.md
  27. 20 0
      docs/api/net/com.drake.net.cache/-cache/index.md
  28. 5 0
      docs/api/net/com.drake.net.cache/failure.md
  29. 16 0
      docs/api/net/com.drake.net.cache/index.md
  30. 5 0
      docs/api/net/com.drake.net.cache/success.md
  31. 8 0
      docs/api/net/com.drake.net.component/-init-content-provider/-init-.md
  32. 5 0
      docs/api/net/com.drake.net.component/-init-content-provider/delete.md
  33. 5 0
      docs/api/net/com.drake.net.component/-init-content-provider/get-type.md
  34. 24 0
      docs/api/net/com.drake.net.component/-init-content-provider/index.md
  35. 5 0
      docs/api/net/com.drake.net.component/-init-content-provider/insert.md
  36. 5 0
      docs/api/net/com.drake.net.component/-init-content-provider/on-create.md
  37. 5 0
      docs/api/net/com.drake.net.component/-init-content-provider/query.md
  38. 5 0
      docs/api/net/com.drake.net.component/-init-content-provider/update.md
  39. 9 0
      docs/api/net/com.drake.net.component/index.md
  40. 0 5
      docs/api/net/com.drake.net.connect/-ok-http-connect-factory/-builder/build.md
  41. 0 5
      docs/api/net/com.drake.net.connect/-ok-http-connect-factory/-builder/client.md
  42. 0 12
      docs/api/net/com.drake.net.connect/-ok-http-connect-factory/-builder/index.md
  43. 0 5
      docs/api/net/com.drake.net.connect/-ok-http-connect-factory/connect.md
  44. 0 20
      docs/api/net/com.drake.net.connect/-ok-http-connect-factory/index.md
  45. 0 5
      docs/api/net/com.drake.net.connect/-ok-http-connect-factory/new-builder.md
  46. 0 9
      docs/api/net/com.drake.net.connect/index.md
  47. 0 15
      docs/api/net/com.drake.net.convert/-default-convert/-init-.md
  48. 0 5
      docs/api/net/com.drake.net.convert/-default-convert/convert.md
  49. 0 36
      docs/api/net/com.drake.net.convert/-default-convert/index.md
  50. 15 0
      docs/api/net/com.drake.net.convert/-j-s-o-n-convert/-init-.md
  51. 1 1
      docs/api/net/com.drake.net.convert/-j-s-o-n-convert/code.md
  52. 36 0
      docs/api/net/com.drake.net.convert/-j-s-o-n-convert/index.md
  53. 1 1
      docs/api/net/com.drake.net.convert/-j-s-o-n-convert/message.md
  54. 5 0
      docs/api/net/com.drake.net.convert/-j-s-o-n-convert/on-convert.md
  55. 3 4
      docs/api/net/com.drake.net.convert/-j-s-o-n-convert/parse-body.md
  56. 1 1
      docs/api/net/com.drake.net.convert/-j-s-o-n-convert/success.md
  57. 8 0
      docs/api/net/com.drake.net.convert/-net-converter/-d-e-f-a-u-l-t.md
  58. 23 0
      docs/api/net/com.drake.net.convert/-net-converter/index.md
  59. 5 0
      docs/api/net/com.drake.net.convert/-net-converter/on-convert.md
  60. 2 1
      docs/api/net/com.drake.net.convert/index.md
  61. 0 8
      docs/api/net/com.drake.net.error/-request-params-exception/-init-.md
  62. 0 5
      docs/api/net/com.drake.net.error/-request-params-exception/code.md
  63. 0 19
      docs/api/net/com.drake.net.error/-request-params-exception/index.md
  64. 0 15
      docs/api/net/com.drake.net.error/-response-exception/-init-.md
  65. 0 8
      docs/api/net/com.drake.net.error/-response-exception/code.md
  66. 0 28
      docs/api/net/com.drake.net.error/-response-exception/index.md
  67. 0 8
      docs/api/net/com.drake.net.error/-response-exception/msg.md
  68. 0 8
      docs/api/net/com.drake.net.error/-server-response-exception/-init-.md
  69. 0 5
      docs/api/net/com.drake.net.error/-server-response-exception/code.md
  70. 0 19
      docs/api/net/com.drake.net.error/-server-response-exception/index.md
  71. 0 18
      docs/api/net/com.drake.net.error/index.md
  72. 8 0
      docs/api/net/com.drake.net.exception/-convert-exception/-init-.md
  73. 19 0
      docs/api/net/com.drake.net.exception/-convert-exception/index.md
  74. 5 0
      docs/api/net/com.drake.net.exception/-convert-exception/response.md
  75. 8 0
      docs/api/net/com.drake.net.exception/-download-file-exception/-init-.md
  76. 13 0
      docs/api/net/com.drake.net.exception/-download-file-exception/index.md
  77. 1 1
      docs/api/net/com.drake.net.exception/-net-cancellation-exception/-init-.md
  78. 1 1
      docs/api/net/com.drake.net.exception/-net-cancellation-exception/index.md
  79. 13 0
      docs/api/net/com.drake.net.exception/-net-exception/-init-.md
  80. 5 0
      docs/api/net/com.drake.net.exception/-net-exception/get-localized-message.md
  81. 44 0
      docs/api/net/com.drake.net.exception/-net-exception/index.md
  82. 8 0
      docs/api/net/com.drake.net.exception/-net-exception/request.md
  83. 5 0
      docs/api/net/com.drake.net.exception/-net-socket-timeout-exception/-init-.md
  84. 11 0
      docs/api/net/com.drake.net.exception/-net-socket-timeout-exception/index.md
  85. 5 0
      docs/api/net/com.drake.net.exception/-networking-exception/-init-.md
  86. 11 0
      docs/api/net/com.drake.net.exception/-networking-exception/index.md
  87. 5 0
      docs/api/net/com.drake.net.exception/-no-cache-exception/-init-.md
  88. 11 0
      docs/api/net/com.drake.net.exception/-no-cache-exception/index.md
  89. 8 0
      docs/api/net/com.drake.net.exception/-request-params-exception/-init-.md
  90. 19 0
      docs/api/net/com.drake.net.exception/-request-params-exception/index.md
  91. 5 0
      docs/api/net/com.drake.net.exception/-request-params-exception/response.md
  92. 8 0
      docs/api/net/com.drake.net.exception/-response-exception/-init-.md
  93. 13 0
      docs/api/net/com.drake.net.exception/-response-exception/index.md
  94. 8 0
      docs/api/net/com.drake.net.exception/-server-response-exception/-init-.md
  95. 19 0
      docs/api/net/com.drake.net.exception/-server-response-exception/index.md
  96. 5 0
      docs/api/net/com.drake.net.exception/-server-response-exception/response.md
  97. 8 0
      docs/api/net/com.drake.net.exception/-u-r-l-parse-exception/-init-.md
  98. 19 0
      docs/api/net/com.drake.net.exception/-u-r-l-parse-exception/index.md
  99. 5 0
      docs/api/net/com.drake.net.exception/-u-r-l-parse-exception/url.md
  100. 25 0
      docs/api/net/com.drake.net.exception/index.md

+ 1 - 1
LICENSE

@@ -42,7 +42,7 @@
       editorial revisions, annotations, elaborations, or other modifications
       represent, as a whole, an original work of authorship. For the purposes
       of this License, Derivative Works shall not include works that remain
-      separable from, or merely link (or bind by name) to the interfaces of,
+      separable from, or merely link (or bind by name) to the com.drake.net.interfaces of,
       the Work and Derivative Works thereof.
 
       "Contribution" shall mean any work of authorship, including

+ 34 - 42
README.md

@@ -2,7 +2,9 @@
 
 <p align="center"><strong>不仅仅是网络请求的异步任务库</strong></p>
 
-<p align="center"><a href="http://liangjingkanji.github.io/Net/">使用文档</a> | <a href="https://coding-pages-bucket-3558162-8706000-16642-587704-1252757332.cos-website.ap-shanghai.myqcloud.com/">备用访问</a></p>
+<p align="center"><a href="https://coding-pages-bucket-3558162-8706000-17639-608061-1252757332.cos-website.ap-shanghai.myqcloud.com">使用文档</a>
+<!--  | <a href="https://coding-pages-bucket-3558162-8706000-16642-587704-1252757332.cos-website.ap-shanghai.myqcloud.com/">备用访问</a> -->
+ </p>
 
 <p align="center"><img src="https://i.imgur.com/X06J6fK.jpg" width="400"/></p>
 
@@ -18,68 +20,58 @@
 
 <br>
 
-Android上不是最强网络任务库, 创新式的网络请求库(基于Kalle), 支持协程高并发网络请求
+Android上不是最强网络任务库, 基于OkHttp且完美支持其所有函数组件, 支持协程高并发网络请求
 
 <br>
 
 Net 1.x 版本为RxJava实现 <br>
 Net 2.x 版本为协程实现(开发者无需掌握协程也可以使用)
 
+Net 3.x 版本为OkHttp4.x实现
+
+<br>
+<p align="center"><strong>欢迎贡献代码/问题</strong></p>
+
 <br>
 
-正在进行的任务
+设计哲学
 
-- OkHttp4.8 重构
+1. 代码优雅
+2. 文档清晰
+3. 扩展性好
+4. 功能全
 
-<br>
 
-主要新增特性
 
-- 代码简洁(最少一行代码发起请求)
-- 文档详细
+主要功能
+
 - Kotlin
 - 协程(不懂协程也可上手)
-- 并发网络请求(马上优化网络速度!)
+- 并发网络请求
 - 串行网络请求
-- 切换线程
-- DSL编程
-- 全局日志记录器(完美解决日志过长展示不清晰数据加密问题, 比抓包更强大)
-- 支持先强制读取缓存后网络请求二次刷新
-- 并发请求返回最快请求结果(可返回不同响应数据)
-- 方便的缓存处理
-- 自动错误信息吐司
-- 详细的错误信息
+- 快速切换线程
+- DSL作用域编程
+- 日志记录器(完美解决日志过长展示不清晰数据加密问题, 比抓包更强大)
+- 并发请求返回最快请求结果
 - 自动异常捕获
-- 自动日志打印异常(任何网络错误可追踪到具体请求接口)
-- 自动JSON解析(可解析List)
+- 自动错误信息吐司
+- 自动JSON解析
 - 自动处理下拉刷新和上拉加载
 - 自动处理分页加载
 - 自动缺省页
 - 自动处理生命周期
 - 自动处理加载对话框
+- 支持配合ViewModel
+- 异常包含请求信息
+- 数据转换器
+- 请求存储键值对
+- 请求支持Id/Group分组
+- 全局手动取消请求/自动取消请求
 - 协程作用域支持错误和结束回调
+- 支持先强制读取缓存后网络请求二次刷新
 - 内置超强轮循器(计时器)
 - 解析JSON数组返回集合
-
-
-
-同时完全不影响Kalle的特性
-
-- 九种缓存模式
-- 重试次数拦截器
-- 数据库缓存加密
-- 上传进度监听
-- 下载进度监听
-- 断点续传
-- 下载文件策略
-- 网络连接判断
-- 自定义数据转换器
-- 网络拦截器
-- 重定向
-- 自定义请求体
-- 全局配置
-- Cookie
-- SSH证书
+- 监听上传/下载进度
 
 
 
@@ -102,11 +94,11 @@ allprojects {
 // 协程库(版本自定)
 implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9'
 implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.9'
+implementation "com.squareup.okhttp3:okhttp:4.9.1"
+implementation 'com.github.liangjingkanji:Net:3.0.0'
 
 // 支持自动下拉刷新和缺省页的(可选)
 implementation 'com.github.liangjingkanji:BRV:1.3.19'
-
-implementation 'com.github.liangjingkanji:Net:2.3.16'
 ```
 
 <br>
@@ -132,4 +124,4 @@ distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
-```
+```

+ 5 - 3
build.gradle

@@ -18,11 +18,12 @@
 
 buildscript {
     ext {
-        kotlin_version = '1.4.32'
+        kotlin_version = '1.5.0'
         brv_version = '1.3.19'
         coroutine_version = '1.4.3'
         glide_version = '4.11.0'
-        room_version = "2.2.6"
+        room_version = "2.3.0"
+        okhttp_version = "4.9.1"
     }
 
     repositories {
@@ -31,8 +32,9 @@ buildscript {
         jcenter()
     }
     dependencies {
-        classpath 'com.android.tools.build:gradle:4.1.3'
+        classpath 'com.android.tools.build:gradle:4.2.0'
         classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
+        classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
         classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
         classpath 'org.jetbrains.dokka:dokka-gradle-plugin:0.10.1'
     }

+ 177 - 36
docs/api/net/alltypes/index.md

@@ -11,46 +11,51 @@
 异步协程作用域
 
 
-| (extensions in package com.drake.net)
+|
 
-##### [android.app.Application](../com.drake.net/android.app.-application/index.md)
+##### [com.drake.net.request.BaseRequest](../com.drake.net.request/-base-request/index.md)
 
 
-| (extensions in package com.drake.net)
+|
 
-##### [com.yanzhenjie.kalle.KalleConfig.Builder](../com.drake.net/com.yanzhenjie.kalle.-kalle-config.-builder/index.md)
+##### [com.drake.net.request.BodyRequest](../com.drake.net.request/-body-request/index.md)
 
 
-| (extensions in package com.drake.net)
+| (extensions in package com.drake.net.request)
 
-##### [android.content.Context](../com.drake.net/android.content.-context/index.md)
+##### [okhttp3.Request.Builder](../com.drake.net.request/okhttp3.-request.-builder/index.md)
 
 
-| (extensions in package com.drake.net)
+| (extensions in package com.drake.net.utils)
 
-##### [kotlinx.coroutines.CoroutineScope](../com.drake.net/kotlinx.coroutines.-coroutine-scope/index.md)
+##### [okhttp3.OkHttpClient.Builder](../com.drake.net.utils/okhttp3.-ok-http-client.-builder/index.md)
 
 
-| (extensions in package com.drake.net.error)
+|
 
-##### [kotlinx.coroutines.CoroutineScope](../com.drake.net.error/kotlinx.coroutines.-coroutine-scope/index.md)
+##### [com.drake.net.cache.Cache](../com.drake.net.cache/-cache/index.md)
 
 
-| (extensions in package com.drake.net.utils)
+|
 
-##### [kotlinx.coroutines.CoroutineScope](../com.drake.net.utils/kotlinx.coroutines.-coroutine-scope/index.md)
+##### [com.drake.net.exception.ConvertException](../com.drake.net.exception/-convert-exception/index.md)
 
+转换数据异常
 
-| (extensions in package com.drake.net.utils)
 
-##### [android.database.Cursor](../com.drake.net.utils/android.database.-cursor/index.md)
+| (extensions in package com.drake.net)
 
+##### [kotlinx.coroutines.CoroutineScope](../com.drake.net/kotlinx.coroutines.-coroutine-scope/index.md)
 
-|
 
-##### [com.drake.net.convert.DefaultConvert](../com.drake.net.convert/-default-convert/index.md)
+| (extensions in package com.drake.net.exception)
 
-默认的转换器实现, 如果不满足需求建议将该文件复制到项目中修改
+##### [kotlinx.coroutines.CoroutineScope](../com.drake.net.exception/kotlinx.coroutines.-coroutine-scope/index.md)
+
+
+| (extensions in package com.drake.net.utils)
+
+##### [kotlinx.coroutines.CoroutineScope](../com.drake.net.utils/kotlinx.coroutines.-coroutine-scope/index.md)
 
 
 | (extensions in package com.drake.net.transform)
@@ -70,6 +75,23 @@
 自动加载对话框网络请求
 
 
+|
+
+##### [com.drake.net.exception.DownloadFileException](../com.drake.net.exception/-download-file-exception/index.md)
+
+下载文件异常
+
+
+| (extensions in package com.drake.net.utils)
+
+##### [android.widget.EditText](../com.drake.net.utils/android.widget.-edit-text/index.md)
+
+
+| (extensions in package com.drake.net.utils)
+
+##### [java.io.File](../com.drake.net.utils/java.io.-file/index.md)
+
+
 | (extensions in package com.drake.net.utils)
 
 ##### [kotlinx.coroutines.flow.Flow](../com.drake.net.utils/kotlinx.coroutines.flow.-flow/index.md)
@@ -85,6 +107,13 @@
 ##### [androidx.fragment.app.FragmentActivity](../com.drake.net.utils/androidx.fragment.app.-fragment-activity/index.md)
 
 
+|
+
+##### [com.drake.net.component.InitContentProvider](../com.drake.net.component/-init-content-provider/index.md)
+
+用于初始化[NetConfig.app](../com.drake.net/-net-config/app.md)
+
+
 |
 
 ##### [com.drake.net.time.Interval](../com.drake.net.time/-interval/index.md)
@@ -99,14 +128,61 @@
 计时器的状态
 
 
-| (extensions in package com.drake.net.utils)
+|
+
+##### [com.drake.net.convert.JSONConvert](../com.drake.net.convert/-j-s-o-n-convert/index.md)
+
+默认的转换器实现, 如果不满足需求建议将该文件复制到项目中修改
+
+
+|
+
+##### [com.drake.net.tag.Label](../com.drake.net.tag/-label/index.md)
+
+
+|
+
+##### [com.drake.net.log.LogRecorder](../com.drake.net.log/-log-recorder/index.md)
 
-##### [androidx.lifecycle.LifecycleOwner](../com.drake.net.utils/androidx.lifecycle.-lifecycle-owner/index.md)
+日志记录器
 
 
 |
 
-##### [com.drake.net.error.NetCancellationException](../com.drake.net.error/-net-cancellation-exception/index.md)
+##### [com.drake.net.interceptor.LogRecordInterceptor](../com.drake.net.interceptor/-log-record-interceptor/index.md)
+
+网络日志记录器
+可以参考此拦截器为项目中其他网络请求库配置. 本拦截器属于标准的OkHttp拦截器适用于所有OkHttp拦截器内核的网络请求库
+
+
+| (extensions in package com.drake.net.request)
+
+##### [okhttp3.MediaType](../com.drake.net.request/okhttp3.-media-type/index.md)
+
+
+|
+
+##### [com.drake.net.log.MessageType](../com.drake.net.log/-message-type/index.md)
+
+
+|
+
+##### [com.drake.net.request.Method](../com.drake.net.request/-method/index.md)
+
+
+|
+
+##### [com.drake.net.Net](../com.drake.net/-net/index.md)
+
+
+|
+
+##### [com.drake.net.interfaces.NetCallback](../com.drake.net.interfaces/-net-callback/index.md)
+
+
+|
+
+##### [com.drake.net.exception.NetCancellationException](../com.drake.net.exception/-net-cancellation-exception/index.md)
 
 取消网络任务的异常
 
@@ -118,6 +194,11 @@
 Net的全局配置
 
 
+|
+
+##### [com.drake.net.convert.NetConverter](../com.drake.net.convert/-net-converter/index.md)
+
+
 |
 
 ##### [com.drake.net.scope.NetCoroutineScope](../com.drake.net.scope/-net-coroutine-scope/index.md)
@@ -125,6 +206,43 @@ Net的全局配置
 自动显示网络错误信息协程作用域
 
 
+|
+
+##### [com.drake.net.exception.NetException](../com.drake.net.exception/-net-exception/index.md)
+
+Net网络异常
+
+
+|
+
+##### [com.drake.net.body.NetRequestBody](../com.drake.net.body/-net-request-body/index.md)
+
+
+|
+
+##### [com.drake.net.body.NetResponseBody](../com.drake.net.body/-net-response-body/index.md)
+
+
+|
+
+##### [com.drake.net.exception.NetSocketTimeoutException](../com.drake.net.exception/-net-socket-timeout-exception/index.md)
+
+
+|
+
+##### [com.drake.net.exception.NetConnectException](../com.drake.net.exception/-networking-exception/index.md)
+
+
+|
+
+##### [com.drake.net.exception.NoCacheException](../com.drake.net.exception/-no-cache-exception/index.md)
+
+
+| (extensions in package com.drake.net.utils)
+
+##### [okhttp3.OkHttpClient](../com.drake.net.utils/okhttp3.-ok-http-client/index.md)
+
+
 |
 
 ##### [com.drake.net.scope.PageCoroutineScope](../com.drake.net.scope/-page-coroutine-scope/index.md)
@@ -137,42 +255,58 @@ Net的全局配置
 
 |
 
-##### [com.drake.net.tag.REQUEST](../com.drake.net.tag/-r-e-q-u-e-s-t.md)
-
-请求参数打印标签
+##### [com.drake.net.request.Progress](../com.drake.net.request/-progress/index.md)
 
 
 |
 
-##### [com.drake.net.error.RequestParamsException](../com.drake.net.error/-request-params-exception/index.md)
+##### [com.drake.net.request.ProgressListener](../com.drake.net.request/-progress-listener/index.md)
 
-404
+进度监听器, 为下载和上传两者
 
 
-|
+| (extensions in package com.drake.net.request)
+
+##### [okhttp3.Request](../com.drake.net.request/okhttp3.-request/index.md)
+
 
-##### [com.drake.net.tag.RESPONSE](../com.drake.net.tag/-r-e-s-p-o-n-s-e.md)
+| (extensions in package com.drake.net.body)
 
-响应体打印标签
+##### [okhttp3.RequestBody](../com.drake.net.body/okhttp3.-request-body/index.md)
 
 
 |
 
-##### [com.drake.net.error.ResponseException](../com.drake.net.error/-response-exception/index.md)
+##### [com.drake.net.interceptor.RequestInterceptor](../com.drake.net.interceptor/-request-interceptor/index.md)
 
-对应网络请求后台定义的错误信息
+
+|
+
+##### [com.drake.net.exception.RequestParamsException](../com.drake.net.exception/-request-params-exception/index.md)
+
+404
+
+
+| (extensions in package com.drake.net.response)
+
+##### [okhttp3.Response](../com.drake.net.response/okhttp3.-response/index.md)
+
+
+| (extensions in package com.drake.net.body)
+
+##### [okhttp3.ResponseBody](../com.drake.net.body/okhttp3.-response-body/index.md)
 
 
 |
 
-##### [com.drake.net.utils.SavedViewModel](../com.drake.net.utils/-saved-view-model/index.md)
+##### [com.drake.net.exception.ResponseException](../com.drake.net.exception/-response-exception/index.md)
 
-继承这个类可以快速创建具备saveInstance的ViewModel
+对应网络请求后台定义的错误信息
 
 
 |
 
-##### [com.drake.net.error.ServerResponseException](../com.drake.net.error/-server-response-exception/index.md)
+##### [com.drake.net.exception.ServerResponseException](../com.drake.net.exception/-server-response-exception/index.md)
 
 500
 
@@ -189,13 +323,20 @@ Net的全局配置
 ##### [com.drake.statelayout.StateLayout](../com.drake.net.utils/com.drake.statelayout.-state-layout/index.md)
 
 
+| (extensions in package com.drake.net.utils)
+
+##### [kotlin.String](../com.drake.net.utils/kotlin.-string/index.md)
+
+
 |
 
-##### [com.drake.net.tag.TAG](../com.drake.net.tag/-t-a-g/index.md)
+##### [com.drake.net.exception.URLParseException](../com.drake.net.exception/-u-r-l-parse-exception/index.md)
 
+URL地址错误
 
-| (extensions in package com.drake.net.utils)
 
-##### [androidx.lifecycle.ViewModelStoreOwner](../com.drake.net.utils/androidx.lifecycle.-view-model-store-owner/index.md)
+|
+
+##### [com.drake.net.request.UrlRequest](../com.drake.net.request/-url-request/index.md)
 
 

+ 10 - 0
docs/api/net/androidx.lifecycle/index.md

@@ -0,0 +1,10 @@
+[net](../index.md) / [androidx.lifecycle](./index.md)
+
+## Package androidx.lifecycle
+
+### Functions
+
+| Name | Summary |
+|---|---|
+| [scopeLife](scope-life.md) | 在[ViewModel](#)被销毁时取消协程作用域`fun ViewModel.scopeLife(dispatcher: CoroutineDispatcher = Dispatchers.Main, block: suspend CoroutineScope.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`AndroidScope`](../com.drake.net.scope/-android-scope/index.md) |
+| [scopeNetLife](scope-net-life.md) | 在[ViewModel](#)被销毁时取消协程作用域以及其中的网络请求 具备网络错误全局处理功能, 其内部的网络请求会跟随其作用域的生命周期`fun ViewModel.scopeNetLife(dispatcher: CoroutineDispatcher = Dispatchers.Main, block: suspend CoroutineScope.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`NetCoroutineScope`](../com.drake.net.scope/-net-coroutine-scope/index.md) |

+ 8 - 0
docs/api/net/androidx.lifecycle/scope-life.md

@@ -0,0 +1,8 @@
+[net](../index.md) / [androidx.lifecycle](index.md) / [scopeLife](./scope-life.md)
+
+# scopeLife
+
+`fun ViewModel.scopeLife(dispatcher: CoroutineDispatcher = Dispatchers.Main, block: suspend CoroutineScope.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`AndroidScope`](../com.drake.net.scope/-android-scope/index.md)
+
+在[ViewModel](#)被销毁时取消协程作用域
+

+ 9 - 0
docs/api/net/androidx.lifecycle/scope-net-life.md

@@ -0,0 +1,9 @@
+[net](../index.md) / [androidx.lifecycle](index.md) / [scopeNetLife](./scope-net-life.md)
+
+# scopeNetLife
+
+`fun ViewModel.scopeNetLife(dispatcher: CoroutineDispatcher = Dispatchers.Main, block: suspend CoroutineScope.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`NetCoroutineScope`](../com.drake.net.scope/-net-coroutine-scope/index.md)
+
+在[ViewModel](#)被销毁时取消协程作用域以及其中的网络请求
+具备网络错误全局处理功能, 其内部的网络请求会跟随其作用域的生命周期
+

+ 5 - 0
docs/api/net/com.drake.net.body/-net-request-body/-init-.md

@@ -0,0 +1,5 @@
+[net](../../index.md) / [com.drake.net.body](../index.md) / [NetRequestBody](index.md) / [&lt;init&gt;](./-init-.md)
+
+# &lt;init&gt;
+
+`NetRequestBody(requestBody: RequestBody, progressListeners: `[`ConcurrentLinkedQueue`](https://docs.oracle.com/javase/6/docs/api/java/util/concurrent/ConcurrentLinkedQueue.html)`<`[`ProgressListener`](../../com.drake.net.request/-progress-listener/index.md)`>? = null)`

+ 6 - 0
docs/api/net/com.drake.net.body/-net-request-body/content-length.md

@@ -0,0 +1,6 @@
+[net](../../index.md) / [com.drake.net.body](../index.md) / [NetRequestBody](index.md) / [contentLength](./content-length.md)
+
+# contentLength
+
+`var contentLength: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)
+`fun contentLength(): `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)

+ 5 - 0
docs/api/net/com.drake.net.body/-net-request-body/content-type.md

@@ -0,0 +1,5 @@
+[net](../../index.md) / [com.drake.net.body](../index.md) / [NetRequestBody](index.md) / [contentType](./content-type.md)
+
+# contentType
+
+`fun contentType(): MediaType?`

+ 26 - 0
docs/api/net/com.drake.net.body/-net-request-body/index.md

@@ -0,0 +1,26 @@
+[net](../../index.md) / [com.drake.net.body](../index.md) / [NetRequestBody](./index.md)
+
+# NetRequestBody
+
+`class NetRequestBody : RequestBody`
+
+### Constructors
+
+| Name | Summary |
+|---|---|
+| [&lt;init&gt;](-init-.md) | `NetRequestBody(requestBody: RequestBody, progressListeners: `[`ConcurrentLinkedQueue`](https://docs.oracle.com/javase/6/docs/api/java/util/concurrent/ConcurrentLinkedQueue.html)`<`[`ProgressListener`](../../com.drake.net.request/-progress-listener/index.md)`>? = null)` |
+
+### Properties
+
+| Name | Summary |
+|---|---|
+| [contentLength](content-length.md) | `var contentLength: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) |
+
+### Functions
+
+| Name | Summary |
+|---|---|
+| [contentLength](content-length.md) | `fun contentLength(): `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) |
+| [contentType](content-type.md) | `fun contentType(): MediaType?` |
+| [toString](to-string.md) | `fun toString(): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) |
+| [writeTo](write-to.md) | `fun writeTo(sink: BufferedSink): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) |

+ 5 - 0
docs/api/net/com.drake.net.body/-net-request-body/to-string.md

@@ -0,0 +1,5 @@
+[net](../../index.md) / [com.drake.net.body](../index.md) / [NetRequestBody](index.md) / [toString](./to-string.md)
+
+# toString
+
+`fun toString(): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)

+ 5 - 0
docs/api/net/com.drake.net.body/-net-request-body/write-to.md

@@ -0,0 +1,5 @@
+[net](../../index.md) / [com.drake.net.body](../index.md) / [NetRequestBody](index.md) / [writeTo](./write-to.md)
+
+# writeTo
+
+`fun writeTo(sink: BufferedSink): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)

+ 5 - 0
docs/api/net/com.drake.net.body/-net-response-body/-init-.md

@@ -0,0 +1,5 @@
+[net](../../index.md) / [com.drake.net.body](../index.md) / [NetResponseBody](index.md) / [&lt;init&gt;](./-init-.md)
+
+# &lt;init&gt;
+
+`NetResponseBody(request: Request, responseBody: ResponseBody)`

+ 5 - 0
docs/api/net/com.drake.net.body/-net-response-body/content-length.md

@@ -0,0 +1,5 @@
+[net](../../index.md) / [com.drake.net.body](../index.md) / [NetResponseBody](index.md) / [contentLength](./content-length.md)
+
+# contentLength
+
+`fun contentLength(): `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)

+ 5 - 0
docs/api/net/com.drake.net.body/-net-response-body/content-type.md

@@ -0,0 +1,5 @@
+[net](../../index.md) / [com.drake.net.body](../index.md) / [NetResponseBody](index.md) / [contentType](./content-type.md)
+
+# contentType
+
+`fun contentType(): MediaType?`

+ 19 - 0
docs/api/net/com.drake.net.body/-net-response-body/index.md

@@ -0,0 +1,19 @@
+[net](../../index.md) / [com.drake.net.body](../index.md) / [NetResponseBody](./index.md)
+
+# NetResponseBody
+
+`class NetResponseBody : ResponseBody`
+
+### Constructors
+
+| Name | Summary |
+|---|---|
+| [&lt;init&gt;](-init-.md) | `NetResponseBody(request: Request, responseBody: ResponseBody)` |
+
+### Functions
+
+| Name | Summary |
+|---|---|
+| [contentLength](content-length.md) | `fun contentLength(): `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) |
+| [contentType](content-type.md) | `fun contentType(): MediaType?` |
+| [source](source.md) | `fun source(): BufferedSource` |

+ 5 - 0
docs/api/net/com.drake.net.body/-net-response-body/source.md

@@ -0,0 +1,5 @@
+[net](../../index.md) / [com.drake.net.body](../index.md) / [NetResponseBody](index.md) / [source](./source.md)
+
+# source
+
+`fun source(): BufferedSource`

+ 17 - 0
docs/api/net/com.drake.net.body/index.md

@@ -0,0 +1,17 @@
+[net](../index.md) / [com.drake.net.body](./index.md)
+
+## Package com.drake.net.body
+
+### Types
+
+| Name | Summary |
+|---|---|
+| [NetRequestBody](-net-request-body/index.md) | `class NetRequestBody : RequestBody` |
+| [NetResponseBody](-net-response-body/index.md) | `class NetResponseBody : ResponseBody` |
+
+### Extensions for External Classes
+
+| Name | Summary |
+|---|---|
+| [okhttp3.RequestBody](okhttp3.-request-body/index.md) |  |
+| [okhttp3.ResponseBody](okhttp3.-response-body/index.md) |  |

+ 5 - 0
docs/api/net/com.drake.net.body/okhttp3.-request-body/add-listener.md

@@ -0,0 +1,5 @@
+[net](../../index.md) / [com.drake.net.body](../index.md) / [okhttp3.RequestBody](index.md) / [addListener](./add-listener.md)
+
+# addListener
+
+`fun RequestBody.addListener(progressListener: `[`ConcurrentLinkedQueue`](https://docs.oracle.com/javase/6/docs/api/java/util/concurrent/ConcurrentLinkedQueue.html)`<`[`ProgressListener`](../../com.drake.net.request/-progress-listener/index.md)`>?): <ERROR CLASS>`

+ 7 - 0
docs/api/net/com.drake.net.body/okhttp3.-request-body/index.md

@@ -0,0 +1,7 @@
+[net](../../index.md) / [com.drake.net.body](../index.md) / [okhttp3.RequestBody](./index.md)
+
+### Extensions for okhttp3.RequestBody
+
+| Name | Summary |
+|---|---|
+| [addListener](add-listener.md) | `fun RequestBody.addListener(progressListener: `[`ConcurrentLinkedQueue`](https://docs.oracle.com/javase/6/docs/api/java/util/concurrent/ConcurrentLinkedQueue.html)`<`[`ProgressListener`](../../com.drake.net.request/-progress-listener/index.md)`>?): <ERROR CLASS>` |

+ 5 - 0
docs/api/net/com.drake.net.body/okhttp3.-response-body/add-listener.md

@@ -0,0 +1,5 @@
+[net](../../index.md) / [com.drake.net.body](../index.md) / [okhttp3.ResponseBody](index.md) / [addListener](./add-listener.md)
+
+# addListener
+
+`fun ResponseBody.addListener(request: Request): <ERROR CLASS>`

+ 7 - 0
docs/api/net/com.drake.net.body/okhttp3.-response-body/index.md

@@ -0,0 +1,7 @@
+[net](../../index.md) / [com.drake.net.body](../index.md) / [okhttp3.ResponseBody](./index.md)
+
+### Extensions for okhttp3.ResponseBody
+
+| Name | Summary |
+|---|---|
+| [addListener](add-listener.md) | `fun ResponseBody.addListener(request: Request): <ERROR CLASS>` |

+ 5 - 0
docs/api/net/com.drake.net.cache/-cache/-c-a-c-h-e.md

@@ -0,0 +1,5 @@
+[net](../../index.md) / [com.drake.net.cache](../index.md) / [Cache](index.md) / [CACHE](./-c-a-c-h-e.md)
+
+# CACHE
+
+`CACHE`

+ 5 - 0
docs/api/net/com.drake.net.cache/-cache/-h-e-a-d-e-r.md

@@ -0,0 +1,5 @@
+[net](../../index.md) / [com.drake.net.cache](../index.md) / [Cache](index.md) / [HEADER](./-h-e-a-d-e-r.md)
+
+# HEADER
+
+`HEADER`

+ 5 - 0
docs/api/net/com.drake.net.cache/-cache/-n-o-n-e.md

@@ -0,0 +1,5 @@
+[net](../../index.md) / [com.drake.net.cache](../index.md) / [Cache](index.md) / [NONE](./-n-o-n-e.md)
+
+# NONE
+
+`NONE`

+ 20 - 0
docs/api/net/com.drake.net.cache/-cache/index.md

@@ -0,0 +1,20 @@
+[net](../../index.md) / [com.drake.net.cache](../index.md) / [Cache](./index.md)
+
+# Cache
+
+`enum class Cache`
+
+### Enum Values
+
+| Name | Summary |
+|---|---|
+| [NONE](-n-o-n-e.md) |  |
+| [CACHE](-c-a-c-h-e.md) |  |
+| [HEADER](-h-e-a-d-e-r.md) |  |
+
+### Extension Functions
+
+| Name | Summary |
+|---|---|
+| [failure](../failure.md) | `infix fun `[`Cache`](./index.md)`.failure(cache: `[`Cache`](./index.md)`): `[`Cache`](./index.md) |
+| [success](../success.md) | `infix fun `[`Cache`](./index.md)`.success(cache: `[`Cache`](./index.md)`): `[`Cache`](./index.md) |

+ 5 - 0
docs/api/net/com.drake.net.cache/failure.md

@@ -0,0 +1,5 @@
+[net](../index.md) / [com.drake.net.cache](index.md) / [failure](./failure.md)
+
+# failure
+
+`infix fun `[`Cache`](-cache/index.md)`.failure(cache: `[`Cache`](-cache/index.md)`): `[`Cache`](-cache/index.md)

+ 16 - 0
docs/api/net/com.drake.net.cache/index.md

@@ -0,0 +1,16 @@
+[net](../index.md) / [com.drake.net.cache](./index.md)
+
+## Package com.drake.net.cache
+
+### Types
+
+| Name | Summary |
+|---|---|
+| [Cache](-cache/index.md) | `enum class Cache` |
+
+### Functions
+
+| Name | Summary |
+|---|---|
+| [failure](failure.md) | `infix fun `[`Cache`](-cache/index.md)`.failure(cache: `[`Cache`](-cache/index.md)`): `[`Cache`](-cache/index.md) |
+| [success](success.md) | `infix fun `[`Cache`](-cache/index.md)`.success(cache: `[`Cache`](-cache/index.md)`): `[`Cache`](-cache/index.md) |

+ 5 - 0
docs/api/net/com.drake.net.cache/success.md

@@ -0,0 +1,5 @@
+[net](../index.md) / [com.drake.net.cache](index.md) / [success](./success.md)
+
+# success
+
+`infix fun `[`Cache`](-cache/index.md)`.success(cache: `[`Cache`](-cache/index.md)`): `[`Cache`](-cache/index.md)

+ 8 - 0
docs/api/net/com.drake.net.component/-init-content-provider/-init-.md

@@ -0,0 +1,8 @@
+[net](../../index.md) / [com.drake.net.component](../index.md) / [InitContentProvider](index.md) / [&lt;init&gt;](./-init-.md)
+
+# &lt;init&gt;
+
+`InitContentProvider()`
+
+用于初始化[NetConfig.app](../../com.drake.net/-net-config/app.md)
+

+ 5 - 0
docs/api/net/com.drake.net.component/-init-content-provider/delete.md

@@ -0,0 +1,5 @@
+[net](../../index.md) / [com.drake.net.component](../index.md) / [InitContentProvider](index.md) / [delete](./delete.md)
+
+# delete
+
+`fun delete(uri: `[`Uri`](https://developer.android.com/reference/android/net/Uri.html)`, selection: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?, selectionArgs: `[`Array`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)`<`[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>?): `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)

+ 5 - 0
docs/api/net/com.drake.net.component/-init-content-provider/get-type.md

@@ -0,0 +1,5 @@
+[net](../../index.md) / [com.drake.net.component](../index.md) / [InitContentProvider](index.md) / [getType](./get-type.md)
+
+# getType
+
+`fun getType(uri: `[`Uri`](https://developer.android.com/reference/android/net/Uri.html)`): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?`

+ 24 - 0
docs/api/net/com.drake.net.component/-init-content-provider/index.md

@@ -0,0 +1,24 @@
+[net](../../index.md) / [com.drake.net.component](../index.md) / [InitContentProvider](./index.md)
+
+# InitContentProvider
+
+`class InitContentProvider : `[`ContentProvider`](https://developer.android.com/reference/android/content/ContentProvider.html)
+
+用于初始化[NetConfig.app](../../com.drake.net/-net-config/app.md)
+
+### Constructors
+
+| Name | Summary |
+|---|---|
+| [&lt;init&gt;](-init-.md) | 用于初始化[NetConfig.app](../../com.drake.net/-net-config/app.md)`InitContentProvider()` |
+
+### Functions
+
+| Name | Summary |
+|---|---|
+| [delete](delete.md) | `fun delete(uri: `[`Uri`](https://developer.android.com/reference/android/net/Uri.html)`, selection: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?, selectionArgs: `[`Array`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)`<`[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>?): `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) |
+| [getType](get-type.md) | `fun getType(uri: `[`Uri`](https://developer.android.com/reference/android/net/Uri.html)`): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` |
+| [insert](insert.md) | `fun insert(uri: `[`Uri`](https://developer.android.com/reference/android/net/Uri.html)`, values: `[`ContentValues`](https://developer.android.com/reference/android/content/ContentValues.html)`?): `[`Uri`](https://developer.android.com/reference/android/net/Uri.html)`?` |
+| [onCreate](on-create.md) | `fun onCreate(): `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) |
+| [query](query.md) | `fun query(uri: `[`Uri`](https://developer.android.com/reference/android/net/Uri.html)`, projection: `[`Array`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)`<`[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>?, selection: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?, selectionArgs: `[`Array`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)`<`[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>?, sortOrder: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?): `[`Cursor`](https://developer.android.com/reference/android/database/Cursor.html)`?` |
+| [update](update.md) | `fun update(uri: `[`Uri`](https://developer.android.com/reference/android/net/Uri.html)`, values: `[`ContentValues`](https://developer.android.com/reference/android/content/ContentValues.html)`?, selection: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?, selectionArgs: `[`Array`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)`<`[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>?): `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) |

+ 5 - 0
docs/api/net/com.drake.net.component/-init-content-provider/insert.md

@@ -0,0 +1,5 @@
+[net](../../index.md) / [com.drake.net.component](../index.md) / [InitContentProvider](index.md) / [insert](./insert.md)
+
+# insert
+
+`fun insert(uri: `[`Uri`](https://developer.android.com/reference/android/net/Uri.html)`, values: `[`ContentValues`](https://developer.android.com/reference/android/content/ContentValues.html)`?): `[`Uri`](https://developer.android.com/reference/android/net/Uri.html)`?`

+ 5 - 0
docs/api/net/com.drake.net.component/-init-content-provider/on-create.md

@@ -0,0 +1,5 @@
+[net](../../index.md) / [com.drake.net.component](../index.md) / [InitContentProvider](index.md) / [onCreate](./on-create.md)
+
+# onCreate
+
+`fun onCreate(): `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)

+ 5 - 0
docs/api/net/com.drake.net.component/-init-content-provider/query.md

@@ -0,0 +1,5 @@
+[net](../../index.md) / [com.drake.net.component](../index.md) / [InitContentProvider](index.md) / [query](./query.md)
+
+# query
+
+`fun query(uri: `[`Uri`](https://developer.android.com/reference/android/net/Uri.html)`, projection: `[`Array`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)`<`[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>?, selection: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?, selectionArgs: `[`Array`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)`<`[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>?, sortOrder: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?): `[`Cursor`](https://developer.android.com/reference/android/database/Cursor.html)`?`

+ 5 - 0
docs/api/net/com.drake.net.component/-init-content-provider/update.md

@@ -0,0 +1,5 @@
+[net](../../index.md) / [com.drake.net.component](../index.md) / [InitContentProvider](index.md) / [update](./update.md)
+
+# update
+
+`fun update(uri: `[`Uri`](https://developer.android.com/reference/android/net/Uri.html)`, values: `[`ContentValues`](https://developer.android.com/reference/android/content/ContentValues.html)`?, selection: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?, selectionArgs: `[`Array`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)`<`[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>?): `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)

+ 9 - 0
docs/api/net/com.drake.net.component/index.md

@@ -0,0 +1,9 @@
+[net](../index.md) / [com.drake.net.component](./index.md)
+
+## Package com.drake.net.component
+
+### Types
+
+| Name | Summary |
+|---|---|
+| [InitContentProvider](-init-content-provider/index.md) | 用于初始化[NetConfig.app](../com.drake.net/-net-config/app.md)`class InitContentProvider : `[`ContentProvider`](https://developer.android.com/reference/android/content/ContentProvider.html) |

+ 0 - 5
docs/api/net/com.drake.net.connect/-ok-http-connect-factory/-builder/build.md

@@ -1,5 +0,0 @@
-[net](../../../index.md) / [com.drake.net.connect](../../index.md) / [OkHttpConnectFactory](../index.md) / [Builder](index.md) / [build](./build.md)
-
-# build
-
-`open fun build(): `[`OkHttpConnectFactory`](../index.md)`!`

+ 0 - 5
docs/api/net/com.drake.net.connect/-ok-http-connect-factory/-builder/client.md

@@ -1,5 +0,0 @@
-[net](../../../index.md) / [com.drake.net.connect](../../index.md) / [OkHttpConnectFactory](../index.md) / [Builder](index.md) / [client](./client.md)
-
-# client
-
-`open fun client(client: OkHttpClient!): Builder!`

+ 0 - 12
docs/api/net/com.drake.net.connect/-ok-http-connect-factory/-builder/index.md

@@ -1,12 +0,0 @@
-[net](../../../index.md) / [com.drake.net.connect](../../index.md) / [OkHttpConnectFactory](../index.md) / [Builder](./index.md)
-
-# Builder
-
-`open class Builder`
-
-### Functions
-
-| Name | Summary |
-|---|---|
-| [build](build.md) | `open fun build(): `[`OkHttpConnectFactory`](../index.md)`!` |
-| [client](client.md) | `open fun client(client: OkHttpClient!): Builder!` |

+ 0 - 5
docs/api/net/com.drake.net.connect/-ok-http-connect-factory/connect.md

@@ -1,5 +0,0 @@
-[net](../../index.md) / [com.drake.net.connect](../index.md) / [OkHttpConnectFactory](index.md) / [connect](./connect.md)
-
-# connect
-
-`open fun connect(request: Request!): Connection!`

+ 0 - 20
docs/api/net/com.drake.net.connect/-ok-http-connect-factory/index.md

@@ -1,20 +0,0 @@
-[net](../../index.md) / [com.drake.net.connect](../index.md) / [OkHttpConnectFactory](./index.md)
-
-# OkHttpConnectFactory
-
-`open class OkHttpConnectFactory : ConnectFactory`
-
-Created by Zhenjie Yan on 2016/10/15.
-
-### Types
-
-| Name | Summary |
-|---|---|
-| [Builder](-builder/index.md) | `open class Builder` |
-
-### Functions
-
-| Name | Summary |
-|---|---|
-| [connect](connect.md) | `open fun connect(request: Request!): Connection!` |
-| [newBuilder](new-builder.md) | `open static fun newBuilder(): Builder!` |

+ 0 - 5
docs/api/net/com.drake.net.connect/-ok-http-connect-factory/new-builder.md

@@ -1,5 +0,0 @@
-[net](../../index.md) / [com.drake.net.connect](../index.md) / [OkHttpConnectFactory](index.md) / [newBuilder](./new-builder.md)
-
-# newBuilder
-
-`open static fun newBuilder(): Builder!`

+ 0 - 9
docs/api/net/com.drake.net.connect/index.md

@@ -1,9 +0,0 @@
-[net](../index.md) / [com.drake.net.connect](./index.md)
-
-## Package com.drake.net.connect
-
-### Types
-
-| Name | Summary |
-|---|---|
-| [OkHttpConnectFactory](-ok-http-connect-factory/index.md) | Created by Zhenjie Yan on 2016/10/15.`open class OkHttpConnectFactory : ConnectFactory` |

+ 0 - 15
docs/api/net/com.drake.net.convert/-default-convert/-init-.md

@@ -1,15 +0,0 @@
-[net](../../index.md) / [com.drake.net.convert](../index.md) / [DefaultConvert](index.md) / [&lt;init&gt;](./-init-.md)
-
-# &lt;init&gt;
-
-`DefaultConvert(success: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` = "0", code: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` = "code", message: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` = "msg")`
-
-默认的转换器实现, 如果不满足需求建议将该文件复制到项目中修改
-
-### Parameters
-
-`success` - 后端定义为成功状态的错误码值
-
-`code` - 错误码在JSON中的字段名
-
-`message` - 错误信息在JSON中的字段名

+ 0 - 5
docs/api/net/com.drake.net.convert/-default-convert/convert.md

@@ -1,5 +0,0 @@
-[net](../../index.md) / [com.drake.net.convert](../index.md) / [DefaultConvert](index.md) / [convert](./convert.md)
-
-# convert
-
-`open fun <S, F> convert(succeed: `[`Type`](https://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html)`, failed: `[`Type`](https://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html)`, request: Request, response: Response, result: Result<S, F>): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)

+ 0 - 36
docs/api/net/com.drake.net.convert/-default-convert/index.md

@@ -1,36 +0,0 @@
-[net](../../index.md) / [com.drake.net.convert](../index.md) / [DefaultConvert](./index.md)
-
-# DefaultConvert
-
-`abstract class DefaultConvert : Converter`
-
-默认的转换器实现, 如果不满足需求建议将该文件复制到项目中修改
-
-### Parameters
-
-`success` - 后端定义为成功状态的错误码值
-
-`code` - 错误码在JSON中的字段名
-
-`message` - 错误信息在JSON中的字段名
-
-### Constructors
-
-| Name | Summary |
-|---|---|
-| [&lt;init&gt;](-init-.md) | 默认的转换器实现, 如果不满足需求建议将该文件复制到项目中修改`DefaultConvert(success: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` = "0", code: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` = "code", message: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` = "msg")` |
-
-### Properties
-
-| Name | Summary |
-|---|---|
-| [code](code.md) | 错误码在JSON中的字段名`val code: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) |
-| [message](message.md) | 错误信息在JSON中的字段名`val message: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) |
-| [success](success.md) | 后端定义为成功状态的错误码值`val success: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) |
-
-### Functions
-
-| Name | Summary |
-|---|---|
-| [convert](convert.md) | `open fun <S, F> convert(succeed: `[`Type`](https://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html)`, failed: `[`Type`](https://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html)`, request: Request, response: Response, result: Result<S, F>): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) |
-| [parseBody](parse-body.md) | 解析字符串数据 一般用于解析JSON`abstract fun <S> `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`.parseBody(succeed: `[`Type`](https://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html)`): S?` |

+ 15 - 0
docs/api/net/com.drake.net.convert/-j-s-o-n-convert/-init-.md

@@ -0,0 +1,15 @@
+[net](../../index.md) / [com.drake.net.convert](../index.md) / [JSONConvert](index.md) / [&lt;init&gt;](./-init-.md)
+
+# &lt;init&gt;
+
+`JSONConvert(success: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` = "0", code: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` = "code", message: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` = "msg")`
+
+默认的转换器实现, 如果不满足需求建议将该文件复制到项目中修改
+
+### Parameters
+
+`success` - 后端定义为成功状态的错误码值
+
+`code` - 错误码在JSON中的字段名
+
+`message` - 错误信息在JSON中的字段名

+ 1 - 1
docs/api/net/com.drake.net.convert/-default-convert/code.md → docs/api/net/com.drake.net.convert/-j-s-o-n-convert/code.md

@@ -1,4 +1,4 @@
-[net](../../index.md) / [com.drake.net.convert](../index.md) / [DefaultConvert](index.md) / [code](./code.md)
+[net](../../index.md) / [com.drake.net.convert](../index.md) / [JSONConvert](index.md) / [code](./code.md)
 
 # code
 

+ 36 - 0
docs/api/net/com.drake.net.convert/-j-s-o-n-convert/index.md

@@ -0,0 +1,36 @@
+[net](../../index.md) / [com.drake.net.convert](../index.md) / [JSONConvert](./index.md)
+
+# JSONConvert
+
+`abstract class JSONConvert : `[`NetConverter`](../-net-converter/index.md)
+
+默认的转换器实现, 如果不满足需求建议将该文件复制到项目中修改
+
+### Parameters
+
+`success` - 后端定义为成功状态的错误码值
+
+`code` - 错误码在JSON中的字段名
+
+`message` - 错误信息在JSON中的字段名
+
+### Constructors
+
+| Name | Summary |
+|---|---|
+| [&lt;init&gt;](-init-.md) | 默认的转换器实现, 如果不满足需求建议将该文件复制到项目中修改`JSONConvert(success: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` = "0", code: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` = "code", message: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` = "msg")` |
+
+### Properties
+
+| Name | Summary |
+|---|---|
+| [code](code.md) | 错误码在JSON中的字段名`val code: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) |
+| [message](message.md) | 错误信息在JSON中的字段名`val message: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) |
+| [success](success.md) | 后端定义为成功状态的错误码值`val success: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) |
+
+### Functions
+
+| Name | Summary |
+|---|---|
+| [onConvert](on-convert.md) | `open fun <R> onConvert(succeed: `[`Type`](https://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html)`, response: Response): R?` |
+| [parseBody](parse-body.md) | 反序列化JSON`abstract fun <S> `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`.parseBody(succeed: `[`Type`](https://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html)`): S?` |

+ 1 - 1
docs/api/net/com.drake.net.convert/-default-convert/message.md → docs/api/net/com.drake.net.convert/-j-s-o-n-convert/message.md

@@ -1,4 +1,4 @@
-[net](../../index.md) / [com.drake.net.convert](../index.md) / [DefaultConvert](index.md) / [message](./message.md)
+[net](../../index.md) / [com.drake.net.convert](../index.md) / [JSONConvert](index.md) / [message](./message.md)
 
 # message
 

+ 5 - 0
docs/api/net/com.drake.net.convert/-j-s-o-n-convert/on-convert.md

@@ -0,0 +1,5 @@
+[net](../../index.md) / [com.drake.net.convert](../index.md) / [JSONConvert](index.md) / [onConvert](./on-convert.md)
+
+# onConvert
+
+`open fun <R> onConvert(succeed: `[`Type`](https://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html)`, response: Response): R?`

+ 3 - 4
docs/api/net/com.drake.net.convert/-default-convert/parse-body.md → docs/api/net/com.drake.net.convert/-j-s-o-n-convert/parse-body.md

@@ -1,15 +1,14 @@
-[net](../../index.md) / [com.drake.net.convert](../index.md) / [DefaultConvert](index.md) / [parseBody](./parse-body.md)
+[net](../../index.md) / [com.drake.net.convert](../index.md) / [JSONConvert](index.md) / [parseBody](./parse-body.md)
 
 # parseBody
 
 `abstract fun <S> `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`.parseBody(succeed: `[`Type`](https://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html)`): S?`
 
-解析字符串数据
-一般用于解析JSON
+反序列化JSON
 
 ### Parameters
 
-`succeed` - 请求函数定义的泛型, 例如一般的Moshi/Gson解析数据需要使用
+`succeed` - JSON对象的类型
 
 **Receiver**
 原始字符串

+ 1 - 1
docs/api/net/com.drake.net.convert/-default-convert/success.md → docs/api/net/com.drake.net.convert/-j-s-o-n-convert/success.md

@@ -1,4 +1,4 @@
-[net](../../index.md) / [com.drake.net.convert](../index.md) / [DefaultConvert](index.md) / [success](./success.md)
+[net](../../index.md) / [com.drake.net.convert](../index.md) / [JSONConvert](index.md) / [success](./success.md)
 
 # success
 

+ 8 - 0
docs/api/net/com.drake.net.convert/-net-converter/-d-e-f-a-u-l-t.md

@@ -0,0 +1,8 @@
+[net](../../index.md) / [com.drake.net.convert](../index.md) / [NetConverter](index.md) / [DEFAULT](./-d-e-f-a-u-l-t.md)
+
+# DEFAULT
+
+`val DEFAULT: `[`NetConverter`](index.md)
+
+返回数据为字符串内容
+

+ 23 - 0
docs/api/net/com.drake.net.convert/-net-converter/index.md

@@ -0,0 +1,23 @@
+[net](../../index.md) / [com.drake.net.convert](../index.md) / [NetConverter](./index.md)
+
+# NetConverter
+
+`interface NetConverter`
+
+### Functions
+
+| Name | Summary |
+|---|---|
+| [onConvert](on-convert.md) | `abstract fun <R> onConvert(succeed: `[`Type`](https://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html)`, response: Response): R?` |
+
+### Companion Object Properties
+
+| Name | Summary |
+|---|---|
+| [DEFAULT](-d-e-f-a-u-l-t.md) | 返回数据为字符串内容`val DEFAULT: `[`NetConverter`](./index.md) |
+
+### Inheritors
+
+| Name | Summary |
+|---|---|
+| [JSONConvert](../-j-s-o-n-convert/index.md) | 默认的转换器实现, 如果不满足需求建议将该文件复制到项目中修改`abstract class JSONConvert : `[`NetConverter`](./index.md) |

+ 5 - 0
docs/api/net/com.drake.net.convert/-net-converter/on-convert.md

@@ -0,0 +1,5 @@
+[net](../../index.md) / [com.drake.net.convert](../index.md) / [NetConverter](index.md) / [onConvert](./on-convert.md)
+
+# onConvert
+
+`abstract fun <R> onConvert(succeed: `[`Type`](https://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html)`, response: Response): R?`

+ 2 - 1
docs/api/net/com.drake.net.convert/index.md

@@ -6,4 +6,5 @@
 
 | Name | Summary |
 |---|---|
-| [DefaultConvert](-default-convert/index.md) | 默认的转换器实现, 如果不满足需求建议将该文件复制到项目中修改`abstract class DefaultConvert : Converter` |
+| [JSONConvert](-j-s-o-n-convert/index.md) | 默认的转换器实现, 如果不满足需求建议将该文件复制到项目中修改`abstract class JSONConvert : `[`NetConverter`](-net-converter/index.md) |
+| [NetConverter](-net-converter/index.md) | `interface NetConverter` |

+ 0 - 8
docs/api/net/com.drake.net.error/-request-params-exception/-init-.md

@@ -1,8 +0,0 @@
-[net](../../index.md) / [com.drake.net.error](../index.md) / [RequestParamsException](index.md) / [&lt;init&gt;](./-init-.md)
-
-# &lt;init&gt;
-
-`RequestParamsException(code: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, request: Request)`
-
-404
-

+ 0 - 5
docs/api/net/com.drake.net.error/-request-params-exception/code.md

@@ -1,5 +0,0 @@
-[net](../../index.md) / [com.drake.net.error](../index.md) / [RequestParamsException](index.md) / [code](./code.md)
-
-# code
-
-`val code: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)

+ 0 - 19
docs/api/net/com.drake.net.error/-request-params-exception/index.md

@@ -1,19 +0,0 @@
-[net](../../index.md) / [com.drake.net.error](../index.md) / [RequestParamsException](./index.md)
-
-# RequestParamsException
-
-`class RequestParamsException : NetException`
-
-404
-
-### Constructors
-
-| Name | Summary |
-|---|---|
-| [&lt;init&gt;](-init-.md) | 404`RequestParamsException(code: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, request: Request)` |
-
-### Properties
-
-| Name | Summary |
-|---|---|
-| [code](code.md) | `val code: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) |

+ 0 - 15
docs/api/net/com.drake.net.error/-response-exception/-init-.md

@@ -1,15 +0,0 @@
-[net](../../index.md) / [com.drake.net.error](../index.md) / [ResponseException](index.md) / [&lt;init&gt;](./-init-.md)
-
-# &lt;init&gt;
-
-`ResponseException(code: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, msg: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, request: Request)`
-
-对应网络请求后台定义的错误信息
-
-### Parameters
-
-`msg` - 网络请求错误信息
-
-`code` - 网络请求错误码
-
-`tag` - 应对错误码判断为错时但是后端又返回了需要使用的数据(建议后端修改). 一般在Convert中设置数据

+ 0 - 8
docs/api/net/com.drake.net.error/-response-exception/code.md

@@ -1,8 +0,0 @@
-[net](../../index.md) / [com.drake.net.error](../index.md) / [ResponseException](index.md) / [code](./code.md)
-
-# code
-
-`val code: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
-
-网络请求错误码
-

+ 0 - 28
docs/api/net/com.drake.net.error/-response-exception/index.md

@@ -1,28 +0,0 @@
-[net](../../index.md) / [com.drake.net.error](../index.md) / [ResponseException](./index.md)
-
-# ResponseException
-
-`class ResponseException : NetException`
-
-对应网络请求后台定义的错误信息
-
-### Parameters
-
-`msg` - 网络请求错误信息
-
-`code` - 网络请求错误码
-
-`tag` - 应对错误码判断为错时但是后端又返回了需要使用的数据(建议后端修改). 一般在Convert中设置数据
-
-### Constructors
-
-| Name | Summary |
-|---|---|
-| [&lt;init&gt;](-init-.md) | 对应网络请求后台定义的错误信息`ResponseException(code: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, msg: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, request: Request)` |
-
-### Properties
-
-| Name | Summary |
-|---|---|
-| [code](code.md) | 网络请求错误码`val code: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) |
-| [msg](msg.md) | 网络请求错误信息`val msg: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) |

+ 0 - 8
docs/api/net/com.drake.net.error/-response-exception/msg.md

@@ -1,8 +0,0 @@
-[net](../../index.md) / [com.drake.net.error](../index.md) / [ResponseException](index.md) / [msg](./msg.md)
-
-# msg
-
-`val msg: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
-
-网络请求错误信息
-

+ 0 - 8
docs/api/net/com.drake.net.error/-server-response-exception/-init-.md

@@ -1,8 +0,0 @@
-[net](../../index.md) / [com.drake.net.error](../index.md) / [ServerResponseException](index.md) / [&lt;init&gt;](./-init-.md)
-
-# &lt;init&gt;
-
-`ServerResponseException(code: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, request: Request)`
-
-500
-

+ 0 - 5
docs/api/net/com.drake.net.error/-server-response-exception/code.md

@@ -1,5 +0,0 @@
-[net](../../index.md) / [com.drake.net.error](../index.md) / [ServerResponseException](index.md) / [code](./code.md)
-
-# code
-
-`val code: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)

+ 0 - 19
docs/api/net/com.drake.net.error/-server-response-exception/index.md

@@ -1,19 +0,0 @@
-[net](../../index.md) / [com.drake.net.error](../index.md) / [ServerResponseException](./index.md)
-
-# ServerResponseException
-
-`class ServerResponseException : NetException`
-
-500
-
-### Constructors
-
-| Name | Summary |
-|---|---|
-| [&lt;init&gt;](-init-.md) | 500`ServerResponseException(code: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, request: Request)` |
-
-### Properties
-
-| Name | Summary |
-|---|---|
-| [code](code.md) | `val code: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) |

+ 0 - 18
docs/api/net/com.drake.net.error/index.md

@@ -1,18 +0,0 @@
-[net](../index.md) / [com.drake.net.error](./index.md)
-
-## Package com.drake.net.error
-
-### Exceptions
-
-| Name | Summary |
-|---|---|
-| [NetCancellationException](-net-cancellation-exception/index.md) | 取消网络任务的异常`class NetCancellationException : `[`CancellationException`](https://docs.oracle.com/javase/6/docs/api/java/util/concurrent/CancellationException.html) |
-| [RequestParamsException](-request-params-exception/index.md) | 404`class RequestParamsException : NetException` |
-| [ResponseException](-response-exception/index.md) | 对应网络请求后台定义的错误信息`class ResponseException : NetException` |
-| [ServerResponseException](-server-response-exception/index.md) | 500`class ServerResponseException : NetException` |
-
-### Extensions for External Classes
-
-| Name | Summary |
-|---|---|
-| [kotlinx.coroutines.CoroutineScope](kotlinx.coroutines.-coroutine-scope/index.md) |  |

+ 8 - 0
docs/api/net/com.drake.net.exception/-convert-exception/-init-.md

@@ -0,0 +1,8 @@
+[net](../../index.md) / [com.drake.net.exception](../index.md) / [ConvertException](index.md) / [&lt;init&gt;](./-init-.md)
+
+# &lt;init&gt;
+
+`ConvertException(response: Response, message: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` = "An exception occurred while converting the data", cause: `[`Throwable`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)`? = null)`
+
+转换数据异常
+

+ 19 - 0
docs/api/net/com.drake.net.exception/-convert-exception/index.md

@@ -0,0 +1,19 @@
+[net](../../index.md) / [com.drake.net.exception](../index.md) / [ConvertException](./index.md)
+
+# ConvertException
+
+`class ConvertException : `[`NetException`](../-net-exception/index.md)
+
+转换数据异常
+
+### Constructors
+
+| Name | Summary |
+|---|---|
+| [&lt;init&gt;](-init-.md) | 转换数据异常`ConvertException(response: Response, message: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` = "An exception occurred while converting the data", cause: `[`Throwable`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)`? = null)` |
+
+### Properties
+
+| Name | Summary |
+|---|---|
+| [response](response.md) | `val response: Response` |

+ 5 - 0
docs/api/net/com.drake.net.exception/-convert-exception/response.md

@@ -0,0 +1,5 @@
+[net](../../index.md) / [com.drake.net.exception](../index.md) / [ConvertException](index.md) / [response](./response.md)
+
+# response
+
+`val response: Response`

+ 8 - 0
docs/api/net/com.drake.net.exception/-download-file-exception/-init-.md

@@ -0,0 +1,8 @@
+[net](../../index.md) / [com.drake.net.exception](../index.md) / [DownloadFileException](index.md) / [&lt;init&gt;](./-init-.md)
+
+# &lt;init&gt;
+
+`DownloadFileException(response: Response, message: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`? = "", cause: `[`Throwable`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)`? = null)`
+
+下载文件异常
+

+ 13 - 0
docs/api/net/com.drake.net.exception/-download-file-exception/index.md

@@ -0,0 +1,13 @@
+[net](../../index.md) / [com.drake.net.exception](../index.md) / [DownloadFileException](./index.md)
+
+# DownloadFileException
+
+`class DownloadFileException : `[`NetException`](../-net-exception/index.md)
+
+下载文件异常
+
+### Constructors
+
+| Name | Summary |
+|---|---|
+| [&lt;init&gt;](-init-.md) | 下载文件异常`DownloadFileException(response: Response, message: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`? = "", cause: `[`Throwable`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)`? = null)` |

+ 1 - 1
docs/api/net/com.drake.net.error/-net-cancellation-exception/-init-.md → docs/api/net/com.drake.net.exception/-net-cancellation-exception/-init-.md

@@ -1,4 +1,4 @@
-[net](../../index.md) / [com.drake.net.error](../index.md) / [NetCancellationException](index.md) / [&lt;init&gt;](./-init-.md)
+[net](../../index.md) / [com.drake.net.exception](../index.md) / [NetCancellationException](index.md) / [&lt;init&gt;](./-init-.md)
 
 # &lt;init&gt;
 

+ 1 - 1
docs/api/net/com.drake.net.error/-net-cancellation-exception/index.md → docs/api/net/com.drake.net.exception/-net-cancellation-exception/index.md

@@ -1,4 +1,4 @@
-[net](../../index.md) / [com.drake.net.error](../index.md) / [NetCancellationException](./index.md)
+[net](../../index.md) / [com.drake.net.exception](../index.md) / [NetCancellationException](./index.md)
 
 # NetCancellationException
 

+ 13 - 0
docs/api/net/com.drake.net.exception/-net-exception/-init-.md

@@ -0,0 +1,13 @@
+[net](../../index.md) / [com.drake.net.exception](../index.md) / [NetException](index.md) / [&lt;init&gt;](./-init-.md)
+
+# &lt;init&gt;
+
+`NetException(request: Request, message: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`? = "", cause: `[`Throwable`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)`? = null)`
+
+Net网络异常
+
+### Parameters
+
+`request` - 请求信息
+
+`message` - 异常信息

+ 5 - 0
docs/api/net/com.drake.net.exception/-net-exception/get-localized-message.md

@@ -0,0 +1,5 @@
+[net](../../index.md) / [com.drake.net.exception](../index.md) / [NetException](index.md) / [getLocalizedMessage](./get-localized-message.md)
+
+# getLocalizedMessage
+
+`open fun getLocalizedMessage(): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?`

+ 44 - 0
docs/api/net/com.drake.net.exception/-net-exception/index.md

@@ -0,0 +1,44 @@
+[net](../../index.md) / [com.drake.net.exception](../index.md) / [NetException](./index.md)
+
+# NetException
+
+`open class NetException : `[`IOException`](https://docs.oracle.com/javase/6/docs/api/java/io/IOException.html)
+
+Net网络异常
+
+### Parameters
+
+`request` - 请求信息
+
+`message` - 异常信息
+
+### Constructors
+
+| Name | Summary |
+|---|---|
+| [&lt;init&gt;](-init-.md) | Net网络异常`NetException(request: Request, message: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`? = "", cause: `[`Throwable`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)`? = null)` |
+
+### Properties
+
+| Name | Summary |
+|---|---|
+| [request](request.md) | 请求信息`val request: Request` |
+
+### Functions
+
+| Name | Summary |
+|---|---|
+| [getLocalizedMessage](get-localized-message.md) | `open fun getLocalizedMessage(): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` |
+
+### Inheritors
+
+| Name | Summary |
+|---|---|
+| [ConvertException](../-convert-exception/index.md) | 转换数据异常`class ConvertException : `[`NetException`](./index.md) |
+| [DownloadFileException](../-download-file-exception/index.md) | 下载文件异常`class DownloadFileException : `[`NetException`](./index.md) |
+| [NetSocketTimeoutException](../-net-socket-timeout-exception/index.md) | `class NetSocketTimeoutException : `[`NetException`](./index.md) |
+| [NetworkingException](../-networking-exception/index.md) | `class NetworkingException : `[`NetException`](./index.md) |
+| [NoCacheException](../-no-cache-exception/index.md) | `class NoCacheException : `[`NetException`](./index.md) |
+| [RequestParamsException](../-request-params-exception/index.md) | 404`class RequestParamsException : `[`NetException`](./index.md) |
+| [ResponseException](../-response-exception/index.md) | 对应网络请求后台定义的错误信息`class ResponseException : `[`NetException`](./index.md) |
+| [ServerResponseException](../-server-response-exception/index.md) | 500`class ServerResponseException : `[`NetException`](./index.md) |

+ 8 - 0
docs/api/net/com.drake.net.exception/-net-exception/request.md

@@ -0,0 +1,8 @@
+[net](../../index.md) / [com.drake.net.exception](../index.md) / [NetException](index.md) / [request](./request.md)
+
+# request
+
+`val request: Request`
+
+请求信息
+

+ 5 - 0
docs/api/net/com.drake.net.exception/-net-socket-timeout-exception/-init-.md

@@ -0,0 +1,5 @@
+[net](../../index.md) / [com.drake.net.exception](../index.md) / [NetSocketTimeoutException](index.md) / [&lt;init&gt;](./-init-.md)
+
+# &lt;init&gt;
+
+`NetSocketTimeoutException(request: Request, message: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`? = "", cause: `[`Throwable`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)`? = null)`

+ 11 - 0
docs/api/net/com.drake.net.exception/-net-socket-timeout-exception/index.md

@@ -0,0 +1,11 @@
+[net](../../index.md) / [com.drake.net.exception](../index.md) / [NetSocketTimeoutException](./index.md)
+
+# NetSocketTimeoutException
+
+`class NetSocketTimeoutException : `[`NetException`](../-net-exception/index.md)
+
+### Constructors
+
+| Name | Summary |
+|---|---|
+| [&lt;init&gt;](-init-.md) | `NetSocketTimeoutException(request: Request, message: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`? = "", cause: `[`Throwable`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)`? = null)` |

+ 5 - 0
docs/api/net/com.drake.net.exception/-networking-exception/-init-.md

@@ -0,0 +1,5 @@
+[net](../../index.md) / [com.drake.net.exception](../index.md) / [NetworkingException](index.md) / [&lt;init&gt;](./-init-.md)
+
+# &lt;init&gt;
+
+`NetworkingException(request: Request, message: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`? = "", cause: `[`Throwable`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)`? = null)`

+ 11 - 0
docs/api/net/com.drake.net.exception/-networking-exception/index.md

@@ -0,0 +1,11 @@
+[net](../../index.md) / [com.drake.net.exception](../index.md) / [NetworkingException](./index.md)
+
+# NetworkingException
+
+`class NetworkingException : `[`NetException`](../-net-exception/index.md)
+
+### Constructors
+
+| Name | Summary |
+|---|---|
+| [&lt;init&gt;](-init-.md) | `NetworkingException(request: Request, message: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`? = "", cause: `[`Throwable`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)`? = null)` |

+ 5 - 0
docs/api/net/com.drake.net.exception/-no-cache-exception/-init-.md

@@ -0,0 +1,5 @@
+[net](../../index.md) / [com.drake.net.exception](../index.md) / [NoCacheException](index.md) / [&lt;init&gt;](./-init-.md)
+
+# &lt;init&gt;
+
+`NoCacheException(request: Request, message: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`? = "", cause: `[`Throwable`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)`? = null)`

+ 11 - 0
docs/api/net/com.drake.net.exception/-no-cache-exception/index.md

@@ -0,0 +1,11 @@
+[net](../../index.md) / [com.drake.net.exception](../index.md) / [NoCacheException](./index.md)
+
+# NoCacheException
+
+`class NoCacheException : `[`NetException`](../-net-exception/index.md)
+
+### Constructors
+
+| Name | Summary |
+|---|---|
+| [&lt;init&gt;](-init-.md) | `NoCacheException(request: Request, message: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`? = "", cause: `[`Throwable`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)`? = null)` |

+ 8 - 0
docs/api/net/com.drake.net.exception/-request-params-exception/-init-.md

@@ -0,0 +1,8 @@
+[net](../../index.md) / [com.drake.net.exception](../index.md) / [RequestParamsException](index.md) / [&lt;init&gt;](./-init-.md)
+
+# &lt;init&gt;
+
+`RequestParamsException(response: Response)`
+
+404
+

+ 19 - 0
docs/api/net/com.drake.net.exception/-request-params-exception/index.md

@@ -0,0 +1,19 @@
+[net](../../index.md) / [com.drake.net.exception](../index.md) / [RequestParamsException](./index.md)
+
+# RequestParamsException
+
+`class RequestParamsException : `[`NetException`](../-net-exception/index.md)
+
+404
+
+### Constructors
+
+| Name | Summary |
+|---|---|
+| [&lt;init&gt;](-init-.md) | 404`RequestParamsException(response: Response)` |
+
+### Properties
+
+| Name | Summary |
+|---|---|
+| [response](response.md) | `val response: Response` |

+ 5 - 0
docs/api/net/com.drake.net.exception/-request-params-exception/response.md

@@ -0,0 +1,5 @@
+[net](../../index.md) / [com.drake.net.exception](../index.md) / [RequestParamsException](index.md) / [response](./response.md)
+
+# response
+
+`val response: Response`

+ 8 - 0
docs/api/net/com.drake.net.exception/-response-exception/-init-.md

@@ -0,0 +1,8 @@
+[net](../../index.md) / [com.drake.net.exception](../index.md) / [ResponseException](index.md) / [&lt;init&gt;](./-init-.md)
+
+# &lt;init&gt;
+
+`ResponseException(response: Response, message: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` = "")`
+
+对应网络请求后台定义的错误信息
+

+ 13 - 0
docs/api/net/com.drake.net.exception/-response-exception/index.md

@@ -0,0 +1,13 @@
+[net](../../index.md) / [com.drake.net.exception](../index.md) / [ResponseException](./index.md)
+
+# ResponseException
+
+`class ResponseException : `[`NetException`](../-net-exception/index.md)
+
+对应网络请求后台定义的错误信息
+
+### Constructors
+
+| Name | Summary |
+|---|---|
+| [&lt;init&gt;](-init-.md) | 对应网络请求后台定义的错误信息`ResponseException(response: Response, message: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` = "")` |

+ 8 - 0
docs/api/net/com.drake.net.exception/-server-response-exception/-init-.md

@@ -0,0 +1,8 @@
+[net](../../index.md) / [com.drake.net.exception](../index.md) / [ServerResponseException](index.md) / [&lt;init&gt;](./-init-.md)
+
+# &lt;init&gt;
+
+`ServerResponseException(response: Response)`
+
+500
+

+ 19 - 0
docs/api/net/com.drake.net.exception/-server-response-exception/index.md

@@ -0,0 +1,19 @@
+[net](../../index.md) / [com.drake.net.exception](../index.md) / [ServerResponseException](./index.md)
+
+# ServerResponseException
+
+`class ServerResponseException : `[`NetException`](../-net-exception/index.md)
+
+500
+
+### Constructors
+
+| Name | Summary |
+|---|---|
+| [&lt;init&gt;](-init-.md) | 500`ServerResponseException(response: Response)` |
+
+### Properties
+
+| Name | Summary |
+|---|---|
+| [response](response.md) | `val response: Response` |

+ 5 - 0
docs/api/net/com.drake.net.exception/-server-response-exception/response.md

@@ -0,0 +1,5 @@
+[net](../../index.md) / [com.drake.net.exception](../index.md) / [ServerResponseException](index.md) / [response](./response.md)
+
+# response
+
+`val response: Response`

+ 8 - 0
docs/api/net/com.drake.net.exception/-u-r-l-parse-exception/-init-.md

@@ -0,0 +1,8 @@
+[net](../../index.md) / [com.drake.net.exception](../index.md) / [URLParseException](index.md) / [&lt;init&gt;](./-init-.md)
+
+# &lt;init&gt;
+
+`URLParseException(url: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, cause: `[`Throwable`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)`? = null)`
+
+URL地址错误
+

+ 19 - 0
docs/api/net/com.drake.net.exception/-u-r-l-parse-exception/index.md

@@ -0,0 +1,19 @@
+[net](../../index.md) / [com.drake.net.exception](../index.md) / [URLParseException](./index.md)
+
+# URLParseException
+
+`open class URLParseException : `[`Exception`](https://docs.oracle.com/javase/6/docs/api/java/lang/Exception.html)
+
+URL地址错误
+
+### Constructors
+
+| Name | Summary |
+|---|---|
+| [&lt;init&gt;](-init-.md) | URL地址错误`URLParseException(url: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, cause: `[`Throwable`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)`? = null)` |
+
+### Properties
+
+| Name | Summary |
+|---|---|
+| [url](url.md) | `val url: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) |

+ 5 - 0
docs/api/net/com.drake.net.exception/-u-r-l-parse-exception/url.md

@@ -0,0 +1,5 @@
+[net](../../index.md) / [com.drake.net.exception](../index.md) / [URLParseException](index.md) / [url](./url.md)
+
+# url
+
+`val url: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)

+ 25 - 0
docs/api/net/com.drake.net.exception/index.md

@@ -0,0 +1,25 @@
+[net](../index.md) / [com.drake.net.exception](./index.md)
+
+## Package com.drake.net.exception
+
+### Exceptions
+
+| Name | Summary |
+|---|---|
+| [ConvertException](-convert-exception/index.md) | 转换数据异常`class ConvertException : `[`NetException`](-net-exception/index.md) |
+| [DownloadFileException](-download-file-exception/index.md) | 下载文件异常`class DownloadFileException : `[`NetException`](-net-exception/index.md) |
+| [NetCancellationException](-net-cancellation-exception/index.md) | 取消网络任务的异常`class NetCancellationException : `[`CancellationException`](https://docs.oracle.com/javase/6/docs/api/java/util/concurrent/CancellationException.html) |
+| [NetException](-net-exception/index.md) | Net网络异常`open class NetException : `[`IOException`](https://docs.oracle.com/javase/6/docs/api/java/io/IOException.html) |
+| [NetSocketTimeoutException](-net-socket-timeout-exception/index.md) | `class NetSocketTimeoutException : `[`NetException`](-net-exception/index.md) |
+| [NetworkingException](-networking-exception/index.md) | `class NetworkingException : `[`NetException`](-net-exception/index.md) |
+| [NoCacheException](-no-cache-exception/index.md) | `class NoCacheException : `[`NetException`](-net-exception/index.md) |
+| [RequestParamsException](-request-params-exception/index.md) | 404`class RequestParamsException : `[`NetException`](-net-exception/index.md) |
+| [ResponseException](-response-exception/index.md) | 对应网络请求后台定义的错误信息`class ResponseException : `[`NetException`](-net-exception/index.md) |
+| [ServerResponseException](-server-response-exception/index.md) | 500`class ServerResponseException : `[`NetException`](-net-exception/index.md) |
+| [URLParseException](-u-r-l-parse-exception/index.md) | URL地址错误`open class URLParseException : `[`Exception`](https://docs.oracle.com/javase/6/docs/api/java/lang/Exception.html) |
+
+### Extensions for External Classes
+
+| Name | Summary |
+|---|---|
+| [kotlinx.coroutines.CoroutineScope](kotlinx.coroutines.-coroutine-scope/index.md) |  |

Some files were not shown because too many files changed in this diff