drake 3 anni fa
parent
commit
8dcfac7af5
100 ha cambiato i file con 476 aggiunte e 200 eliminazioni
  1. 10 15
      README.md
  2. 48 20
      docs/api/net/alltypes/index.md
  3. 1 1
      docs/api/net/com.drake.net.body/-net-request-body/-init-.md
  4. 1 1
      docs/api/net/com.drake.net.body/-net-request-body/content-length.md
  5. 3 3
      docs/api/net/com.drake.net.body/-net-request-body/index.md
  6. 13 0
      docs/api/net/com.drake.net.body/-net-request-body/peek-string.md
  7. 0 5
      docs/api/net/com.drake.net.body/-net-request-body/to-string.md
  8. 1 1
      docs/api/net/com.drake.net.body/-net-response-body/-init-.md
  9. 2 1
      docs/api/net/com.drake.net.body/-net-response-body/index.md
  10. 13 0
      docs/api/net/com.drake.net.body/-net-response-body/peek-string.md
  11. 0 5
      docs/api/net/com.drake.net.body/okhttp3.-request-body/add-listener.md
  12. 2 1
      docs/api/net/com.drake.net.body/okhttp3.-request-body/index.md
  13. 11 0
      docs/api/net/com.drake.net.body/okhttp3.-request-body/peek-string.md
  14. 5 0
      docs/api/net/com.drake.net.body/okhttp3.-request-body/to-net-request-body.md
  15. 0 5
      docs/api/net/com.drake.net.body/okhttp3.-response-body/add-listener.md
  16. 2 1
      docs/api/net/com.drake.net.body/okhttp3.-response-body/index.md
  17. 11 0
      docs/api/net/com.drake.net.body/okhttp3.-response-body/peek-string.md
  18. 5 0
      docs/api/net/com.drake.net.body/okhttp3.-response-body/to-net-response-body.md
  19. 0 5
      docs/api/net/com.drake.net.cache/-cache/-c-a-c-h-e.md
  20. 0 5
      docs/api/net/com.drake.net.cache/-cache/-h-e-a-d-e-r.md
  21. 0 5
      docs/api/net/com.drake.net.cache/-cache/-n-o-n-e.md
  22. 0 20
      docs/api/net/com.drake.net.cache/-cache/index.md
  23. 0 5
      docs/api/net/com.drake.net.cache/failure.md
  24. 0 16
      docs/api/net/com.drake.net.cache/index.md
  25. 0 5
      docs/api/net/com.drake.net.cache/success.md
  26. 5 0
      docs/api/net/com.drake.net.component/-progress/-init-.md
  27. 11 0
      docs/api/net/com.drake.net.component/-progress/current-byte-count.md
  28. 1 1
      docs/api/net/com.drake.net.component/-progress/current-size.md
  29. 1 1
      docs/api/net/com.drake.net.component/-progress/finish.md
  30. 5 5
      docs/api/net/com.drake.net.component/-progress/index.md
  31. 11 0
      docs/api/net/com.drake.net.component/-progress/interval-byte-count.md
  32. 11 0
      docs/api/net/com.drake.net.component/-progress/interval-time.md
  33. 1 1
      docs/api/net/com.drake.net.component/-progress/progress.md
  34. 1 1
      docs/api/net/com.drake.net.component/-progress/remain-size.md
  35. 1 1
      docs/api/net/com.drake.net.component/-progress/remain-time-seconds.md
  36. 1 1
      docs/api/net/com.drake.net.component/-progress/remain-time.md
  37. 1 1
      docs/api/net/com.drake.net.component/-progress/speed-bytes.md
  38. 1 1
      docs/api/net/com.drake.net.component/-progress/speed-size.md
  39. 11 0
      docs/api/net/com.drake.net.component/-progress/start-elapsed-realtime.md
  40. 11 0
      docs/api/net/com.drake.net.component/-progress/total-byte-count.md
  41. 1 1
      docs/api/net/com.drake.net.component/-progress/total-size.md
  42. 1 1
      docs/api/net/com.drake.net.component/-progress/use-time-seconds.md
  43. 1 1
      docs/api/net/com.drake.net.component/-progress/use-time.md
  44. 1 0
      docs/api/net/com.drake.net.component/index.md
  45. 1 1
      docs/api/net/com.drake.net.convert/-j-s-o-n-convert/-init-.md
  46. 2 2
      docs/api/net/com.drake.net.convert/-j-s-o-n-convert/index.md
  47. 1 1
      docs/api/net/com.drake.net.convert/-net-converter/index.md
  48. 1 1
      docs/api/net/com.drake.net.convert/index.md
  49. 1 1
      docs/api/net/com.drake.net.exception/-convert-exception/-init-.md
  50. 1 1
      docs/api/net/com.drake.net.exception/-convert-exception/index.md
  51. 1 1
      docs/api/net/com.drake.net.exception/-download-file-exception/-init-.md
  52. 1 1
      docs/api/net/com.drake.net.exception/-download-file-exception/index.md
  53. 5 0
      docs/api/net/com.drake.net.exception/-net-connect-exception/-init-.md
  54. 11 0
      docs/api/net/com.drake.net.exception/-net-connect-exception/index.md
  55. 2 2
      docs/api/net/com.drake.net.exception/-net-exception/-init-.md
  56. 8 6
      docs/api/net/com.drake.net.exception/-net-exception/index.md
  57. 8 0
      docs/api/net/com.drake.net.exception/-net-exception/info.md
  58. 1 1
      docs/api/net/com.drake.net.exception/-net-socket-timeout-exception/-init-.md
  59. 1 1
      docs/api/net/com.drake.net.exception/-net-socket-timeout-exception/index.md
  60. 5 0
      docs/api/net/com.drake.net.exception/-net-unknown-host-exception/-init-.md
  61. 11 0
      docs/api/net/com.drake.net.exception/-net-unknown-host-exception/index.md
  62. 0 5
      docs/api/net/com.drake.net.exception/-networking-exception/-init-.md
  63. 0 11
      docs/api/net/com.drake.net.exception/-networking-exception/index.md
  64. 1 1
      docs/api/net/com.drake.net.exception/-no-cache-exception/-init-.md
  65. 1 1
      docs/api/net/com.drake.net.exception/-no-cache-exception/index.md
  66. 1 1
      docs/api/net/com.drake.net.exception/-request-params-exception/-init-.md
  67. 2 2
      docs/api/net/com.drake.net.exception/-request-params-exception/index.md
  68. 2 2
      docs/api/net/com.drake.net.exception/-response-exception/-init-.md
  69. 2 2
      docs/api/net/com.drake.net.exception/-response-exception/index.md
  70. 1 1
      docs/api/net/com.drake.net.exception/-server-response-exception/-init-.md
  71. 2 2
      docs/api/net/com.drake.net.exception/-server-response-exception/index.md
  72. 5 4
      docs/api/net/com.drake.net.exception/index.md
  73. 3 1
      docs/api/net/com.drake.net.interceptor/-log-record-interceptor/-init-.md
  74. 11 0
      docs/api/net/com.drake.net.interceptor/-log-record-interceptor/enabled.md
  75. 11 1
      docs/api/net/com.drake.net.interceptor/-log-record-interceptor/index.md
  76. 11 0
      docs/api/net/com.drake.net.interceptor/-log-record-interceptor/request-byte-count.md
  77. 11 0
      docs/api/net/com.drake.net.interceptor/-log-record-interceptor/response-byte-count.md
  78. 13 0
      docs/api/net/com.drake.net.interceptor/-net-ok-http-interceptor/index.md
  79. 5 0
      docs/api/net/com.drake.net.interceptor/-net-ok-http-interceptor/intercept.md
  80. 8 0
      docs/api/net/com.drake.net.interceptor/-retry-interceptor/-init-.md
  81. 25 0
      docs/api/net/com.drake.net.interceptor/-retry-interceptor/index.md
  82. 5 0
      docs/api/net/com.drake.net.interceptor/-retry-interceptor/intercept.md
  83. 11 0
      docs/api/net/com.drake.net.interceptor/-retry-interceptor/retry-count.md
  84. 2 0
      docs/api/net/com.drake.net.interceptor/index.md
  85. 6 1
      docs/api/net/com.drake.net.interfaces/-net-callback/-init-.md
  86. 5 1
      docs/api/net/com.drake.net.interfaces/-net-callback/index.md
  87. 1 1
      docs/api/net/com.drake.net.interfaces/-progress-listener/-init-.md
  88. 5 0
      docs/api/net/com.drake.net.interfaces/-progress-listener/elapsed-time.md
  89. 3 3
      docs/api/net/com.drake.net.interfaces/-progress-listener/index.md
  90. 5 0
      docs/api/net/com.drake.net.interfaces/-progress-listener/interval-byte-count.md
  91. 1 1
      docs/api/net/com.drake.net.interfaces/-progress-listener/interval.md
  92. 8 0
      docs/api/net/com.drake.net.interfaces/-progress-listener/on-progress.md
  93. 2 1
      docs/api/net/com.drake.net.interfaces/index.md
  94. 11 0
      docs/api/net/com.drake.net.okhttp/index.md
  95. 8 0
      docs/api/net/com.drake.net.okhttp/okhttp3.-call/attach-to-net.md
  96. 8 0
      docs/api/net/com.drake.net.okhttp/okhttp3.-call/detach-from-net.md
  97. 8 0
      docs/api/net/com.drake.net.okhttp/okhttp3.-call/index.md
  98. 4 1
      docs/api/net/com.drake.net.okhttp/okhttp3.-ok-http-client.-builder/index.md
  99. 1 1
      docs/api/net/com.drake.net.okhttp/okhttp3.-ok-http-client.-builder/on-dialog.md
  100. 1 1
      docs/api/net/com.drake.net.okhttp/okhttp3.-ok-http-client.-builder/on-error.md

+ 10 - 15
README.md

@@ -2,9 +2,10 @@
 
 <p align="center"><strong>不仅仅是网络请求的异步任务库</strong></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"><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>
+ | <a href="https://coding-pages-bucket-3558162-8706000-17639-608061-1252757332.cos-website.ap-shanghai.myqcloud.com">Net2-文档</a>
+</p>
 
 <p align="center"><img src="https://i.imgur.com/X06J6fK.jpg" width="400"/></p>
 
@@ -25,8 +26,7 @@ Android上不是最强网络任务库, 基于OkHttp且完美支持其所有函
 <br>
 
 Net 1.x 版本为RxJava实现 <br>
-Net 2.x 版本为协程实现(开发者无需掌握协程也可以使用)
-
+[Net 2.x](https://github.com/liangjingkanji/Net/tree/2.x) 版本为协程实现(开发者无需掌握协程也可以使用) <br>
 Net 3.x 版本为OkHttp4.x实现
 
 <br>
@@ -34,15 +34,6 @@ Net 3.x 版本为OkHttp4.x实现
 
 <br>
 
-设计哲学
-
-1. 代码优雅
-2. 文档清晰
-3. 扩展性好
-4. 功能全
-
-
-
 主要功能
 
 - Kotlin
@@ -91,10 +82,14 @@ allprojects {
 在 module 的 build.gradle 添加依赖
 
 ```groovy
-// 协程库(版本自定)
+// 协程库(版本自定)
 implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9'
 implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.9'
+
+// OkHttp(版本可自定)
 implementation "com.squareup.okhttp3:okhttp:4.9.1"
+
+// Net
 implementation 'com.github.liangjingkanji:Net:3.0.0'
 
 // 支持自动下拉刷新和缺省页的(可选)

+ 48 - 20
docs/api/net/alltypes/index.md

@@ -21,19 +21,19 @@
 ##### [com.drake.net.request.BodyRequest](../com.drake.net.request/-body-request/index.md)
 
 
-| (extensions in package com.drake.net.request)
+| (extensions in package com.drake.net.okhttp)
 
-##### [okhttp3.Request.Builder](../com.drake.net.request/okhttp3.-request.-builder/index.md)
+##### [okhttp3.OkHttpClient.Builder](../com.drake.net.okhttp/okhttp3.-ok-http-client.-builder/index.md)
 
 
-| (extensions in package com.drake.net.utils)
+| (extensions in package com.drake.net.request)
 
-##### [okhttp3.OkHttpClient.Builder](../com.drake.net.utils/okhttp3.-ok-http-client.-builder/index.md)
+##### [okhttp3.Request.Builder](../com.drake.net.request/okhttp3.-request.-builder/index.md)
 
 
-|
+| (extensions in package com.drake.net.okhttp)
 
-##### [com.drake.net.cache.Cache](../com.drake.net.cache/-cache/index.md)
+##### [okhttp3.Call](../com.drake.net.okhttp/okhttp3.-call/index.md)
 
 
 |
@@ -107,6 +107,11 @@
 ##### [androidx.fragment.app.FragmentActivity](../com.drake.net.utils/androidx.fragment.app.-fragment-activity/index.md)
 
 
+|
+
+##### [com.drake.net.utils.Https](../com.drake.net.utils/-https/index.md)
+
+
 |
 
 ##### [com.drake.net.component.InitContentProvider](../com.drake.net.component/-init-content-provider/index.md)
@@ -132,12 +137,7 @@
 
 ##### [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)
+常见的JSON转换器实现, 如果不满意继承实现自定义的业务逻辑
 
 
 |
@@ -179,6 +179,10 @@
 
 ##### [com.drake.net.interfaces.NetCallback](../com.drake.net.interfaces/-net-callback/index.md)
 
+提供泛型转换特性
+相对于OkHttp的Callback新增三个回调函数: [onSuccess](../com.drake.net.interfaces/-net-callback/on-error.md) [onComplete](../com.drake.net.interfaces/-net-callback/on-complete.md)
+这三个函数都运行在主线程上
+
 
 |
 
@@ -194,6 +198,11 @@
 Net的全局配置
 
 
+|
+
+##### [com.drake.net.exception.NetConnectException](../com.drake.net.exception/-net-connect-exception/index.md)
+
+
 |
 
 ##### [com.drake.net.convert.NetConverter](../com.drake.net.convert/-net-converter/index.md)
@@ -213,6 +222,18 @@ Net的全局配置
 Net网络异常
 
 
+|
+
+##### [com.drake.net.tag.NetLabel](../com.drake.net.tag/-net-label/index.md)
+
+
+|
+
+##### [com.drake.net.interceptor.NetOkHttpInterceptor](../com.drake.net.interceptor/-net-ok-http-interceptor/index.md)
+
+Net代理OkHttp的拦截器
+
+
 |
 
 ##### [com.drake.net.body.NetRequestBody](../com.drake.net.body/-net-request-body/index.md)
@@ -230,7 +251,7 @@ Net网络异常
 
 |
 
-##### [com.drake.net.exception.NetConnectException](../com.drake.net.exception/-networking-exception/index.md)
+##### [com.drake.net.exception.NetUnknownHostException](../com.drake.net.exception/-net-unknown-host-exception/index.md)
 
 
 |
@@ -238,9 +259,9 @@ Net网络异常
 ##### [com.drake.net.exception.NoCacheException](../com.drake.net.exception/-no-cache-exception/index.md)
 
 
-| (extensions in package com.drake.net.utils)
+| (extensions in package com.drake.net.okhttp)
 
-##### [okhttp3.OkHttpClient](../com.drake.net.utils/okhttp3.-ok-http-client/index.md)
+##### [okhttp3.OkHttpClient](../com.drake.net.okhttp/okhttp3.-ok-http-client/index.md)
 
 
 |
@@ -255,12 +276,12 @@ Net网络异常
 
 |
 
-##### [com.drake.net.request.Progress](../com.drake.net.request/-progress/index.md)
+##### [com.drake.net.component.Progress](../com.drake.net.component/-progress/index.md)
 
 
 |
 
-##### [com.drake.net.request.ProgressListener](../com.drake.net.request/-progress-listener/index.md)
+##### [com.drake.net.interfaces.ProgressListener](../com.drake.net.interfaces/-progress-listener/index.md)
 
 进度监听器, 为下载和上传两者
 
@@ -284,7 +305,7 @@ Net网络异常
 
 ##### [com.drake.net.exception.RequestParamsException](../com.drake.net.exception/-request-params-exception/index.md)
 
-404
+400 - 499 客户端请求异常
 
 
 | (extensions in package com.drake.net.response)
@@ -301,14 +322,21 @@ Net网络异常
 
 ##### [com.drake.net.exception.ResponseException](../com.drake.net.exception/-response-exception/index.md)
 
-对应网络请求后台定义的错误信息
+如果返回200但是返回数据不符合业务要求可以抛出该异常
+
+
+|
+
+##### [com.drake.net.interceptor.RetryInterceptor](../com.drake.net.interceptor/-retry-interceptor/index.md)
+
+重试次数拦截器
 
 
 |
 
 ##### [com.drake.net.exception.ServerResponseException](../com.drake.net.exception/-server-response-exception/index.md)
 
-500
+= 500 服务器异常
 
 
 |

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

@@ -2,4 +2,4 @@
 
 # &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)`
+`NetRequestBody(requestBody: RequestBody, progressListeners: `[`ConcurrentLinkedQueue`](https://docs.oracle.com/javase/6/docs/api/java/util/concurrent/ConcurrentLinkedQueue.html)`<`[`ProgressListener`](../../com.drake.net.interfaces/-progress-listener/index.md)`>? = null)`

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

@@ -2,5 +2,5 @@
 
 # contentLength
 
-`var contentLength: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)
+`val contentLength: <ERROR CLASS>`
 `fun contentLength(): `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)

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

@@ -8,13 +8,13 @@
 
 | 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)` |
+| [&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.interfaces/-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) |
+| [contentLength](content-length.md) | `val contentLength: <ERROR CLASS>` |
 
 ### Functions
 
@@ -22,5 +22,5 @@
 |---|---|
 | [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) |
+| [peekString](peek-string.md) | 复制一段指定长度的字符串内容`fun peekString(byteCount: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` = 1024 * 1024, discard: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)` = false): `[`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) |

+ 13 - 0
docs/api/net/com.drake.net.body/-net-request-body/peek-string.md

@@ -0,0 +1,13 @@
+[net](../../index.md) / [com.drake.net.body](../index.md) / [NetRequestBody](index.md) / [peekString](./peek-string.md)
+
+# peekString
+
+`fun peekString(byteCount: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` = 1024 * 1024, discard: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)` = false): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
+
+复制一段指定长度的字符串内容
+
+### Parameters
+
+`byteCount` - 复制的字节长度. 如果-1则返回完整的字符串内容
+
+`discard` - 如果实际长度大于指定长度则直接返回null. 可以保证数据完整性

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

@@ -1,5 +0,0 @@
-[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)

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

@@ -2,4 +2,4 @@
 
 # &lt;init&gt;
 
-`NetResponseBody(request: Request, responseBody: ResponseBody)`
+`NetResponseBody(responseBody: ResponseBody, progressListeners: `[`ConcurrentLinkedQueue`](https://docs.oracle.com/javase/6/docs/api/java/util/concurrent/ConcurrentLinkedQueue.html)`<`[`ProgressListener`](../../com.drake.net.interfaces/-progress-listener/index.md)`>? = null, complete: (() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`)? = null)`

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

@@ -8,7 +8,7 @@
 
 | Name | Summary |
 |---|---|
-| [&lt;init&gt;](-init-.md) | `NetResponseBody(request: Request, responseBody: ResponseBody)` |
+| [&lt;init&gt;](-init-.md) | `NetResponseBody(responseBody: ResponseBody, progressListeners: `[`ConcurrentLinkedQueue`](https://docs.oracle.com/javase/6/docs/api/java/util/concurrent/ConcurrentLinkedQueue.html)`<`[`ProgressListener`](../../com.drake.net.interfaces/-progress-listener/index.md)`>? = null, complete: (() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`)? = null)` |
 
 ### Functions
 
@@ -16,4 +16,5 @@
 |---|---|
 | [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?` |
+| [peekString](peek-string.md) | 复制一段指定长度的字符串内容`fun peekString(byteCount: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` = 1024 * 1024 * 4, discard: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)` = false): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) |
 | [source](source.md) | `fun source(): BufferedSource` |

+ 13 - 0
docs/api/net/com.drake.net.body/-net-response-body/peek-string.md

@@ -0,0 +1,13 @@
+[net](../../index.md) / [com.drake.net.body](../index.md) / [NetResponseBody](index.md) / [peekString](./peek-string.md)
+
+# peekString
+
+`fun peekString(byteCount: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` = 1024 * 1024 * 4, discard: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)` = false): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
+
+复制一段指定长度的字符串内容
+
+### Parameters
+
+`byteCount` - 复制的字节长度. 如果-1则返回完整的字符串内容
+
+`discard` - 如果实际长度大于指定长度则直接返回null. 可以保证数据完整性

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

@@ -1,5 +0,0 @@
-[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>`

+ 2 - 1
docs/api/net/com.drake.net.body/okhttp3.-request-body/index.md

@@ -4,4 +4,5 @@
 
 | 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>` |
+| [peekString](peek-string.md) | 复制一段指定长度的字符串内容`fun RequestBody?.peekString(byteCount: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` = 1024 * 1024, discard: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)` = false): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` |
+| [toNetRequestBody](to-net-request-body.md) | `fun RequestBody.toNetRequestBody(request: Request): <ERROR CLASS>` |

+ 11 - 0
docs/api/net/com.drake.net.body/okhttp3.-request-body/peek-string.md

@@ -0,0 +1,11 @@
+[net](../../index.md) / [com.drake.net.body](../index.md) / [okhttp3.RequestBody](index.md) / [peekString](./peek-string.md)
+
+# peekString
+
+`@JvmName("peekString") fun RequestBody?.peekString(byteCount: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` = 1024 * 1024, discard: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)` = false): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?`
+
+复制一段指定长度的字符串内容
+
+### Parameters
+
+`byteCount` - 复制的字节长度. 如果-1则返回完整的字符串内容

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

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

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

@@ -1,5 +0,0 @@
-[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>`

+ 2 - 1
docs/api/net/com.drake.net.body/okhttp3.-response-body/index.md

@@ -4,4 +4,5 @@
 
 | Name | Summary |
 |---|---|
-| [addListener](add-listener.md) | `fun ResponseBody.addListener(request: Request): <ERROR CLASS>` |
+| [peekString](peek-string.md) | 复制一段指定长度的字符串内容`fun ResponseBody?.peekString(byteCount: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` = 1024 * 1024 * 4, discard: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)` = false): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` |
+| [toNetResponseBody](to-net-response-body.md) | `fun ResponseBody.toNetResponseBody(request: Request, complete: (() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`)? = null): <ERROR CLASS>` |

+ 11 - 0
docs/api/net/com.drake.net.body/okhttp3.-response-body/peek-string.md

@@ -0,0 +1,11 @@
+[net](../../index.md) / [com.drake.net.body](../index.md) / [okhttp3.ResponseBody](index.md) / [peekString](./peek-string.md)
+
+# peekString
+
+`fun ResponseBody?.peekString(byteCount: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` = 1024 * 1024 * 4, discard: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)` = false): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?`
+
+复制一段指定长度的字符串内容
+
+### Parameters
+
+`byteCount` - 复制的字节长度. 如果-1则返回完整的字符串内容

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

@@ -0,0 +1,5 @@
+[net](../../index.md) / [com.drake.net.body](../index.md) / [okhttp3.ResponseBody](index.md) / [toNetResponseBody](./to-net-response-body.md)
+
+# toNetResponseBody
+
+`fun ResponseBody.toNetResponseBody(request: Request, complete: (() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`)? = null): <ERROR CLASS>`

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

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

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

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

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

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

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

@@ -1,20 +0,0 @@
-[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) |

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

@@ -1,5 +0,0 @@
-[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)

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

@@ -1,16 +0,0 @@
-[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) |

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

@@ -1,5 +0,0 @@
-[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)

+ 5 - 0
docs/api/net/com.drake.net.component/-progress/-init-.md

@@ -0,0 +1,5 @@
+[net](../../index.md) / [com.drake.net.component](../index.md) / [Progress](index.md) / [&lt;init&gt;](./-init-.md)
+
+# &lt;init&gt;
+
+`Progress(currentByteCount: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` = 0, totalByteCount: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` = 0, intervalByteCount: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` = 0, intervalTime: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` = 0, startElapsedRealtime: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` = SystemClock.elapsedRealtime())`

+ 11 - 0
docs/api/net/com.drake.net.component/-progress/current-byte-count.md

@@ -0,0 +1,11 @@
+[net](../../index.md) / [com.drake.net.component](../index.md) / [Progress](index.md) / [currentByteCount](./current-byte-count.md)
+
+# currentByteCount
+
+`var currentByteCount: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)
+
+当前已经完成的字节数
+
+### Property
+
+`currentByteCount` - 当前已经完成的字节数

+ 1 - 1
docs/api/net/com.drake.net.request/-progress/current-size.md → docs/api/net/com.drake.net.component/-progress/current-size.md

@@ -1,4 +1,4 @@
-[net](../../index.md) / [com.drake.net.request](../index.md) / [Progress](index.md) / [currentSize](./current-size.md)
+[net](../../index.md) / [com.drake.net.component](../index.md) / [Progress](index.md) / [currentSize](./current-size.md)
 
 # currentSize
 

+ 1 - 1
docs/api/net/com.drake.net.request/-progress/finish.md → docs/api/net/com.drake.net.component/-progress/finish.md

@@ -1,4 +1,4 @@
-[net](../../index.md) / [com.drake.net.request](../index.md) / [Progress](index.md) / [finish](./finish.md)
+[net](../../index.md) / [com.drake.net.component](../index.md) / [Progress](index.md) / [finish](./finish.md)
 
 # finish
 

+ 5 - 5
docs/api/net/com.drake.net.request/-progress/index.md → docs/api/net/com.drake.net.component/-progress/index.md

@@ -1,4 +1,4 @@
-[net](../../index.md) / [com.drake.net.request](../index.md) / [Progress](./index.md)
+[net](../../index.md) / [com.drake.net.component](../index.md) / [Progress](./index.md)
 
 # Progress
 
@@ -8,18 +8,18 @@
 
 | Name | Summary |
 |---|---|
-| [&lt;init&gt;](-init-.md) | `Progress(currentBytes: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` = 0, totalBytes: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` = 0, intervalBytes: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` = 0, intervalTime: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` = 0, startElapsedRealtime: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` = SystemClock.elapsedRealtime())` |
+| [&lt;init&gt;](-init-.md) | `Progress(currentByteCount: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` = 0, totalByteCount: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` = 0, intervalByteCount: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` = 0, intervalTime: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` = 0, startElapsedRealtime: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` = SystemClock.elapsedRealtime())` |
 
 ### Properties
 
 | Name | Summary |
 |---|---|
-| [currentBytes](current-bytes.md) | 当前已经完成的字节数`var currentBytes: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) |
-| [intervalBytes](interval-bytes.md) | 进度间隔时间内完成的字节数`var intervalBytes: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) |
+| [currentByteCount](current-byte-count.md) | 当前已经完成的字节数`var currentByteCount: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) |
+| [intervalByteCount](interval-byte-count.md) | 进度间隔时间内完成的字节数`var intervalByteCount: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) |
 | [intervalTime](interval-time.md) | 距离上次进度变化间隔时间`var intervalTime: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) |
 | [speedBytes](speed-bytes.md) | 每秒下载速度, 字节单位`var speedBytes: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) |
 | [startElapsedRealtime](start-elapsed-realtime.md) | 开始下载的时间`val startElapsedRealtime: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) |
-| [totalBytes](total-bytes.md) | 当前已经完成的字节数`var totalBytes: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) |
+| [totalByteCount](total-byte-count.md) | 当前已经完成的字节数`var totalByteCount: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) |
 
 ### Functions
 

+ 11 - 0
docs/api/net/com.drake.net.component/-progress/interval-byte-count.md

@@ -0,0 +1,11 @@
+[net](../../index.md) / [com.drake.net.component](../index.md) / [Progress](index.md) / [intervalByteCount](./interval-byte-count.md)
+
+# intervalByteCount
+
+`var intervalByteCount: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)
+
+进度间隔时间内完成的字节数
+
+### Property
+
+`intervalByteCount` - 进度间隔时间内完成的字节数

+ 11 - 0
docs/api/net/com.drake.net.component/-progress/interval-time.md

@@ -0,0 +1,11 @@
+[net](../../index.md) / [com.drake.net.component](../index.md) / [Progress](index.md) / [intervalTime](./interval-time.md)
+
+# intervalTime
+
+`var intervalTime: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)
+
+距离上次进度变化间隔时间
+
+### Property
+
+`intervalTime` - 距离上次进度变化间隔时间

+ 1 - 1
docs/api/net/com.drake.net.request/-progress/progress.md → docs/api/net/com.drake.net.component/-progress/progress.md

@@ -1,4 +1,4 @@
-[net](../../index.md) / [com.drake.net.request](../index.md) / [Progress](index.md) / [progress](./progress.md)
+[net](../../index.md) / [com.drake.net.component](../index.md) / [Progress](index.md) / [progress](./progress.md)
 
 # progress
 

+ 1 - 1
docs/api/net/com.drake.net.request/-progress/remain-size.md → docs/api/net/com.drake.net.component/-progress/remain-size.md

@@ -1,4 +1,4 @@
-[net](../../index.md) / [com.drake.net.request](../index.md) / [Progress](index.md) / [remainSize](./remain-size.md)
+[net](../../index.md) / [com.drake.net.component](../index.md) / [Progress](index.md) / [remainSize](./remain-size.md)
 
 # remainSize
 

+ 1 - 1
docs/api/net/com.drake.net.request/-progress/remain-time-seconds.md → docs/api/net/com.drake.net.component/-progress/remain-time-seconds.md

@@ -1,4 +1,4 @@
-[net](../../index.md) / [com.drake.net.request](../index.md) / [Progress](index.md) / [remainTimeSeconds](./remain-time-seconds.md)
+[net](../../index.md) / [com.drake.net.component](../index.md) / [Progress](index.md) / [remainTimeSeconds](./remain-time-seconds.md)
 
 # remainTimeSeconds
 

+ 1 - 1
docs/api/net/com.drake.net.request/-progress/remain-time.md → docs/api/net/com.drake.net.component/-progress/remain-time.md

@@ -1,4 +1,4 @@
-[net](../../index.md) / [com.drake.net.request](../index.md) / [Progress](index.md) / [remainTime](./remain-time.md)
+[net](../../index.md) / [com.drake.net.component](../index.md) / [Progress](index.md) / [remainTime](./remain-time.md)
 
 # remainTime
 

+ 1 - 1
docs/api/net/com.drake.net.request/-progress/speed-bytes.md → docs/api/net/com.drake.net.component/-progress/speed-bytes.md

@@ -1,4 +1,4 @@
-[net](../../index.md) / [com.drake.net.request](../index.md) / [Progress](index.md) / [speedBytes](./speed-bytes.md)
+[net](../../index.md) / [com.drake.net.component](../index.md) / [Progress](index.md) / [speedBytes](./speed-bytes.md)
 
 # speedBytes
 

+ 1 - 1
docs/api/net/com.drake.net.request/-progress/speed-size.md → docs/api/net/com.drake.net.component/-progress/speed-size.md

@@ -1,4 +1,4 @@
-[net](../../index.md) / [com.drake.net.request](../index.md) / [Progress](index.md) / [speedSize](./speed-size.md)
+[net](../../index.md) / [com.drake.net.component](../index.md) / [Progress](index.md) / [speedSize](./speed-size.md)
 
 # speedSize
 

+ 11 - 0
docs/api/net/com.drake.net.component/-progress/start-elapsed-realtime.md

@@ -0,0 +1,11 @@
+[net](../../index.md) / [com.drake.net.component](../index.md) / [Progress](index.md) / [startElapsedRealtime](./start-elapsed-realtime.md)
+
+# startElapsedRealtime
+
+`val startElapsedRealtime: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)
+
+开始下载的时间
+
+### Property
+
+`startElapsedRealtime` - 开始下载的时间

+ 11 - 0
docs/api/net/com.drake.net.component/-progress/total-byte-count.md

@@ -0,0 +1,11 @@
+[net](../../index.md) / [com.drake.net.component](../index.md) / [Progress](index.md) / [totalByteCount](./total-byte-count.md)
+
+# totalByteCount
+
+`var totalByteCount: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)
+
+当前已经完成的字节数
+
+### Property
+
+`totalByteCount` - 当前已经完成的字节数

+ 1 - 1
docs/api/net/com.drake.net.request/-progress/total-size.md → docs/api/net/com.drake.net.component/-progress/total-size.md

@@ -1,4 +1,4 @@
-[net](../../index.md) / [com.drake.net.request](../index.md) / [Progress](index.md) / [totalSize](./total-size.md)
+[net](../../index.md) / [com.drake.net.component](../index.md) / [Progress](index.md) / [totalSize](./total-size.md)
 
 # totalSize
 

+ 1 - 1
docs/api/net/com.drake.net.request/-progress/use-time-seconds.md → docs/api/net/com.drake.net.component/-progress/use-time-seconds.md

@@ -1,4 +1,4 @@
-[net](../../index.md) / [com.drake.net.request](../index.md) / [Progress](index.md) / [useTimeSeconds](./use-time-seconds.md)
+[net](../../index.md) / [com.drake.net.component](../index.md) / [Progress](index.md) / [useTimeSeconds](./use-time-seconds.md)
 
 # useTimeSeconds
 

+ 1 - 1
docs/api/net/com.drake.net.request/-progress/use-time.md → docs/api/net/com.drake.net.component/-progress/use-time.md

@@ -1,4 +1,4 @@
-[net](../../index.md) / [com.drake.net.request](../index.md) / [Progress](index.md) / [useTime](./use-time.md)
+[net](../../index.md) / [com.drake.net.component](../index.md) / [Progress](index.md) / [useTime](./use-time.md)
 
 # useTime
 

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

@@ -7,3 +7,4 @@
 | 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) |
+| [Progress](-progress/index.md) | `data class Progress` |

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

@@ -4,7 +4,7 @@
 
 `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")`
 
-默认的转换器实现, 如果不满足需求建议将该文件复制到项目中修改
+常见的JSON转换器实现, 如果不满意继承实现自定义的业务逻辑
 
 ### Parameters
 

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

@@ -4,7 +4,7 @@
 
 `abstract class JSONConvert : `[`NetConverter`](../-net-converter/index.md)
 
-默认的转换器实现, 如果不满足需求建议将该文件复制到项目中修改
+常见的JSON转换器实现, 如果不满意继承实现自定义的业务逻辑
 
 ### Parameters
 
@@ -18,7 +18,7 @@
 
 | 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")` |
+| [&lt;init&gt;](-init-.md) | 常见的JSON转换器实现, 如果不满意继承实现自定义的业务逻辑`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
 

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

@@ -20,4 +20,4 @@
 
 | Name | Summary |
 |---|---|
-| [JSONConvert](../-j-s-o-n-convert/index.md) | 默认的转换器实现, 如果不满足需求建议将该文件复制到项目中修改`abstract class JSONConvert : `[`NetConverter`](./index.md) |
+| [JSONConvert](../-j-s-o-n-convert/index.md) | 常见的JSON转换器实现, 如果不满意继承实现自定义的业务逻辑`abstract class JSONConvert : `[`NetConverter`](./index.md) |

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

@@ -6,5 +6,5 @@
 
 | Name | Summary |
 |---|---|
-| [JSONConvert](-j-s-o-n-convert/index.md) | 默认的转换器实现, 如果不满足需求建议将该文件复制到项目中修改`abstract class JSONConvert : `[`NetConverter`](-net-converter/index.md) |
+| [JSONConvert](-j-s-o-n-convert/index.md) | 常见的JSON转换器实现, 如果不满意继承实现自定义的业务逻辑`abstract class JSONConvert : `[`NetConverter`](-net-converter/index.md) |
 | [NetConverter](-net-converter/index.md) | `interface NetConverter` |

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

@@ -2,7 +2,7 @@
 
 # &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)`
+`ConvertException(response: Response, info: `[`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)`
 
 转换数据异常
 

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

@@ -10,7 +10,7 @@
 
 | 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)` |
+| [&lt;init&gt;](-init-.md) | 转换数据异常`ConvertException(response: Response, info: `[`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
 

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

@@ -2,7 +2,7 @@
 
 # &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)`
+`DownloadFileException(response: Response, info: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`? = null, cause: `[`Throwable`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)`? = null)`
 
 下载文件异常
 

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

@@ -10,4 +10,4 @@
 
 | 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)` |
+| [&lt;init&gt;](-init-.md) | 下载文件异常`DownloadFileException(response: Response, info: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`? = null, cause: `[`Throwable`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)`? = null)` |

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

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

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

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

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

@@ -2,7 +2,7 @@
 
 # &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)`
+`NetException(request: Request, info: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`? = null, cause: `[`Throwable`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)`? = null)`
 
 Net网络异常
 
@@ -10,4 +10,4 @@ Net网络异常
 
 `request` - 请求信息
 
-`message` - 异常信息
+`info` - 异常信息

+ 8 - 6
docs/api/net/com.drake.net.exception/-net-exception/index.md

@@ -10,18 +10,19 @@ Net网络异常
 
 `request` - 请求信息
 
-`message` - 异常信息
+`info` - 异常信息
 
 ### 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)` |
+| [&lt;init&gt;](-init-.md) | Net网络异常`NetException(request: Request, info: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`? = null, cause: `[`Throwable`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)`? = null)` |
 
 ### Properties
 
 | Name | Summary |
 |---|---|
+| [info](info.md) | 异常信息`val info: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` |
 | [request](request.md) | 请求信息`val request: Request` |
 
 ### Functions
@@ -36,9 +37,10 @@ Net网络异常
 |---|---|
 | [ConvertException](../-convert-exception/index.md) | 转换数据异常`class ConvertException : `[`NetException`](./index.md) |
 | [DownloadFileException](../-download-file-exception/index.md) | 下载文件异常`class DownloadFileException : `[`NetException`](./index.md) |
+| [NetConnectException](../-net-connect-exception/index.md) | `class NetConnectException : `[`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) |
+| [NetUnknownHostException](../-net-unknown-host-exception/index.md) | `class NetUnknownHostException : `[`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) |
+| [RequestParamsException](../-request-params-exception/index.md) | 400 - 499 客户端请求异常`class RequestParamsException : `[`NetException`](./index.md) |
+| [ResponseException](../-response-exception/index.md) | 如果返回200但是返回数据不符合业务要求可以抛出该异常`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/info.md

@@ -0,0 +1,8 @@
+[net](../../index.md) / [com.drake.net.exception](../index.md) / [NetException](index.md) / [info](./info.md)
+
+# info
+
+`val info: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?`
+
+异常信息
+

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

@@ -2,4 +2,4 @@
 
 # &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)`
+`NetSocketTimeoutException(request: Request, info: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`? = null, cause: `[`Throwable`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)`? = null)`

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

@@ -8,4 +8,4 @@
 
 | 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)` |
+| [&lt;init&gt;](-init-.md) | `NetSocketTimeoutException(request: Request, info: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`? = null, cause: `[`Throwable`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)`? = null)` |

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

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

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

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

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

@@ -1,5 +0,0 @@
-[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)`

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

@@ -1,11 +0,0 @@
-[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)` |

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

@@ -2,4 +2,4 @@
 
 # &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)`
+`NoCacheException(request: Request, info: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`? = null, cause: `[`Throwable`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)`? = null)`

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

@@ -8,4 +8,4 @@
 
 | 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)` |
+| [&lt;init&gt;](-init-.md) | `NoCacheException(request: Request, info: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`? = null, cause: `[`Throwable`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)`? = null)` |

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

@@ -4,5 +4,5 @@
 
 `RequestParamsException(response: Response)`
 
-404
+400 - 499 客户端请求异常
 

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

@@ -4,13 +4,13 @@
 
 `class RequestParamsException : `[`NetException`](../-net-exception/index.md)
 
-404
+400 - 499 客户端请求异常
 
 ### Constructors
 
 | Name | Summary |
 |---|---|
-| [&lt;init&gt;](-init-.md) | 404`RequestParamsException(response: Response)` |
+| [&lt;init&gt;](-init-.md) | 400 - 499 客户端请求异常`RequestParamsException(response: Response)` |
 
 ### Properties
 

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

@@ -2,7 +2,7 @@
 
 # &lt;init&gt;
 
-`ResponseException(response: Response, message: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` = "")`
+`ResponseException(response: Response, info: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?)`
 
-对应网络请求后台定义的错误信息
+如果返回200但是返回数据不符合业务要求可以抛出该异常
 

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

@@ -4,10 +4,10 @@
 
 `class ResponseException : `[`NetException`](../-net-exception/index.md)
 
-对应网络请求后台定义的错误信息
+如果返回200但是返回数据不符合业务要求可以抛出该异常
 
 ### Constructors
 
 | Name | Summary |
 |---|---|
-| [&lt;init&gt;](-init-.md) | 对应网络请求后台定义的错误信息`ResponseException(response: Response, message: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` = "")` |
+| [&lt;init&gt;](-init-.md) | 如果返回200但是返回数据不符合业务要求可以抛出该异常`ResponseException(response: Response, info: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?)` |

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

@@ -4,5 +4,5 @@
 
 `ServerResponseException(response: Response)`
 
-500
+= 500 服务器异常
 

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

@@ -4,13 +4,13 @@
 
 `class ServerResponseException : `[`NetException`](../-net-exception/index.md)
 
-500
+= 500 服务器异常
 
 ### Constructors
 
 | Name | Summary |
 |---|---|
-| [&lt;init&gt;](-init-.md) | 500`ServerResponseException(response: Response)` |
+| [&lt;init&gt;](-init-.md) | = 500 服务器异常`ServerResponseException(response: Response)` |
 
 ### Properties
 

+ 5 - 4
docs/api/net/com.drake.net.exception/index.md

@@ -9,13 +9,14 @@
 | [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) |
+| [NetConnectException](-net-connect-exception/index.md) | `class NetConnectException : `[`NetException`](-net-exception/index.md) |
 | [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) |
+| [NetUnknownHostException](-net-unknown-host-exception/index.md) | `class NetUnknownHostException : `[`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) |
+| [RequestParamsException](-request-params-exception/index.md) | 400 - 499 客户端请求异常`class RequestParamsException : `[`NetException`](-net-exception/index.md) |
+| [ResponseException](-response-exception/index.md) | 如果返回200但是返回数据不符合业务要求可以抛出该异常`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

+ 3 - 1
docs/api/net/com.drake.net.interceptor/-log-record-interceptor/-init-.md

@@ -2,8 +2,10 @@
 
 # &lt;init&gt;
 
-`LogRecordInterceptor(enabled: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)`
+`LogRecordInterceptor(enabled: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`, requestByteCount: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` = 1024 * 1024, responseByteCount: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` = 1024 * 1024 * 4)`
 
 网络日志记录器
 可以参考此拦截器为项目中其他网络请求库配置. 本拦截器属于标准的OkHttp拦截器适用于所有OkHttp拦截器内核的网络请求库
 
+在正式环境下请禁用此日志记录器. 因为他会消耗少量网络速度
+

+ 11 - 0
docs/api/net/com.drake.net.interceptor/-log-record-interceptor/enabled.md

@@ -0,0 +1,11 @@
+[net](../../index.md) / [com.drake.net.interceptor](../index.md) / [LogRecordInterceptor](index.md) / [enabled](./enabled.md)
+
+# enabled
+
+`val enabled: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
+
+是否启用日志输出
+
+### Property
+
+`enabled` - 是否启用日志输出

+ 11 - 1
docs/api/net/com.drake.net.interceptor/-log-record-interceptor/index.md

@@ -7,11 +7,21 @@
 网络日志记录器
 可以参考此拦截器为项目中其他网络请求库配置. 本拦截器属于标准的OkHttp拦截器适用于所有OkHttp拦截器内核的网络请求库
 
+在正式环境下请禁用此日志记录器. 因为他会消耗少量网络速度
+
 ### Constructors
 
 | Name | Summary |
 |---|---|
-| [&lt;init&gt;](-init-.md) | 网络日志记录器 可以参考此拦截器为项目中其他网络请求库配置. 本拦截器属于标准的OkHttp拦截器适用于所有OkHttp拦截器内核的网络请求库`LogRecordInterceptor(enabled: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` |
+| [&lt;init&gt;](-init-.md) | 网络日志记录器 可以参考此拦截器为项目中其他网络请求库配置. 本拦截器属于标准的OkHttp拦截器适用于所有OkHttp拦截器内核的网络请求库`LogRecordInterceptor(enabled: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`, requestByteCount: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` = 1024 * 1024, responseByteCount: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` = 1024 * 1024 * 4)` |
+
+### Properties
+
+| Name | Summary |
+|---|---|
+| [enabled](enabled.md) | 是否启用日志输出`val enabled: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) |
+| [requestByteCount](request-byte-count.md) | 请求日志输出字节数`val requestByteCount: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) |
+| [responseByteCount](response-byte-count.md) | 响应日志输出字节数`val responseByteCount: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) |
 
 ### Functions
 

+ 11 - 0
docs/api/net/com.drake.net.interceptor/-log-record-interceptor/request-byte-count.md

@@ -0,0 +1,11 @@
+[net](../../index.md) / [com.drake.net.interceptor](../index.md) / [LogRecordInterceptor](index.md) / [requestByteCount](./request-byte-count.md)
+
+# requestByteCount
+
+`val requestByteCount: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)
+
+请求日志输出字节数
+
+### Property
+
+`requestByteCount` - 请求日志输出字节数

+ 11 - 0
docs/api/net/com.drake.net.interceptor/-log-record-interceptor/response-byte-count.md

@@ -0,0 +1,11 @@
+[net](../../index.md) / [com.drake.net.interceptor](../index.md) / [LogRecordInterceptor](index.md) / [responseByteCount](./response-byte-count.md)
+
+# responseByteCount
+
+`val responseByteCount: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)
+
+响应日志输出字节数
+
+### Property
+
+`responseByteCount` - 响应日志输出字节数

+ 13 - 0
docs/api/net/com.drake.net.interceptor/-net-ok-http-interceptor/index.md

@@ -0,0 +1,13 @@
+[net](../../index.md) / [com.drake.net.interceptor](../index.md) / [NetOkHttpInterceptor](./index.md)
+
+# NetOkHttpInterceptor
+
+`object NetOkHttpInterceptor : Interceptor`
+
+Net代理OkHttp的拦截器
+
+### Functions
+
+| Name | Summary |
+|---|---|
+| [intercept](intercept.md) | `fun intercept(chain: Chain): Response` |

+ 5 - 0
docs/api/net/com.drake.net.interceptor/-net-ok-http-interceptor/intercept.md

@@ -0,0 +1,5 @@
+[net](../../index.md) / [com.drake.net.interceptor](../index.md) / [NetOkHttpInterceptor](index.md) / [intercept](./intercept.md)
+
+# intercept
+
+`fun intercept(chain: Chain): Response`

+ 8 - 0
docs/api/net/com.drake.net.interceptor/-retry-interceptor/-init-.md

@@ -0,0 +1,8 @@
+[net](../../index.md) / [com.drake.net.interceptor](../index.md) / [RetryInterceptor](index.md) / [&lt;init&gt;](./-init-.md)
+
+# &lt;init&gt;
+
+`RetryInterceptor(retryCount: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` = 3)`
+
+重试次数拦截器
+

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

@@ -0,0 +1,25 @@
+[net](../../index.md) / [com.drake.net.interceptor](../index.md) / [RetryInterceptor](./index.md)
+
+# RetryInterceptor
+
+`class RetryInterceptor : Interceptor`
+
+重试次数拦截器
+
+### Constructors
+
+| Name | Summary |
+|---|---|
+| [&lt;init&gt;](-init-.md) | 重试次数拦截器`RetryInterceptor(retryCount: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` = 3)` |
+
+### Properties
+
+| Name | Summary |
+|---|---|
+| [retryCount](retry-count.md) | 重试次数`val retryCount: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) |
+
+### Functions
+
+| Name | Summary |
+|---|---|
+| [intercept](intercept.md) | `fun intercept(chain: Chain): Response` |

+ 5 - 0
docs/api/net/com.drake.net.interceptor/-retry-interceptor/intercept.md

@@ -0,0 +1,5 @@
+[net](../../index.md) / [com.drake.net.interceptor](../index.md) / [RetryInterceptor](index.md) / [intercept](./intercept.md)
+
+# intercept
+
+`fun intercept(chain: Chain): Response`

+ 11 - 0
docs/api/net/com.drake.net.interceptor/-retry-interceptor/retry-count.md

@@ -0,0 +1,11 @@
+[net](../../index.md) / [com.drake.net.interceptor](../index.md) / [RetryInterceptor](index.md) / [retryCount](./retry-count.md)
+
+# retryCount
+
+`val retryCount: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
+
+重试次数
+
+### Property
+
+`retryCount` - 重试次数

+ 2 - 0
docs/api/net/com.drake.net.interceptor/index.md

@@ -7,4 +7,6 @@
 | Name | Summary |
 |---|---|
 | [LogRecordInterceptor](-log-record-interceptor/index.md) | 网络日志记录器 可以参考此拦截器为项目中其他网络请求库配置. 本拦截器属于标准的OkHttp拦截器适用于所有OkHttp拦截器内核的网络请求库`class LogRecordInterceptor : Interceptor` |
+| [NetOkHttpInterceptor](-net-ok-http-interceptor/index.md) | Net代理OkHttp的拦截器`object NetOkHttpInterceptor : Interceptor` |
 | [RequestInterceptor](-request-interceptor/index.md) | `interface RequestInterceptor` |
+| [RetryInterceptor](-retry-interceptor/index.md) | 重试次数拦截器`class RetryInterceptor : Interceptor` |

+ 6 - 1
docs/api/net/com.drake.net.interfaces/-net-callback/-init-.md

@@ -2,4 +2,9 @@
 
 # &lt;init&gt;
 
-`NetCallback()`
+`NetCallback()`
+
+提供泛型转换特性
+相对于OkHttp的Callback新增三个回调函数: [onSuccess](on-error.md) [onComplete](on-complete.md)
+这三个函数都运行在主线程上
+

+ 5 - 1
docs/api/net/com.drake.net.interfaces/-net-callback/index.md

@@ -4,11 +4,15 @@
 
 `abstract class NetCallback<T> : Callback`
 
+提供泛型转换特性
+相对于OkHttp的Callback新增三个回调函数: [onSuccess](on-error.md) [onComplete](on-complete.md)
+这三个函数都运行在主线程上
+
 ### Constructors
 
 | Name | Summary |
 |---|---|
-| [&lt;init&gt;](-init-.md) | `NetCallback()` |
+| [&lt;init&gt;](-init-.md) | 提供泛型转换特性 相对于OkHttp的Callback新增三个回调函数: [onSuccess](on-error.md) [onComplete](on-complete.md) 这三个函数都运行在主线程上`NetCallback()` |
 
 ### Functions
 

+ 1 - 1
docs/api/net/com.drake.net.request/-progress-listener/-init-.md → docs/api/net/com.drake.net.interfaces/-progress-listener/-init-.md

@@ -1,4 +1,4 @@
-[net](../../index.md) / [com.drake.net.request](../index.md) / [ProgressListener](index.md) / [&lt;init&gt;](./-init-.md)
+[net](../../index.md) / [com.drake.net.interfaces](../index.md) / [ProgressListener](index.md) / [&lt;init&gt;](./-init-.md)
 
 # &lt;init&gt;
 

+ 5 - 0
docs/api/net/com.drake.net.interfaces/-progress-listener/elapsed-time.md

@@ -0,0 +1,5 @@
+[net](../../index.md) / [com.drake.net.interfaces](../index.md) / [ProgressListener](index.md) / [elapsedTime](./elapsed-time.md)
+
+# elapsedTime
+
+`var elapsedTime: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)

+ 3 - 3
docs/api/net/com.drake.net.request/-progress-listener/index.md → docs/api/net/com.drake.net.interfaces/-progress-listener/index.md

@@ -1,4 +1,4 @@
-[net](../../index.md) / [com.drake.net.request](../index.md) / [ProgressListener](./index.md)
+[net](../../index.md) / [com.drake.net.interfaces](../index.md) / [ProgressListener](./index.md)
 
 # ProgressListener
 
@@ -22,10 +22,10 @@
 |---|---|
 | [elapsedTime](elapsed-time.md) | `var elapsedTime: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) |
 | [interval](interval.md) | 进度监听器刷新的间隔时间, 单位为毫秒, 默认值为500ms`var interval: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) |
-| [progressBuffBytes](progress-buff-bytes.md) | `var progressBuffBytes: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) |
+| [intervalByteCount](interval-byte-count.md) | `var intervalByteCount: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) |
 
 ### Functions
 
 | Name | Summary |
 |---|---|
-| [onProgress](on-progress.md) | `abstract fun onProgress(p: `[`Progress`](../-progress/index.md)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) |
+| [onProgress](on-progress.md) | 监听上传/下载进度回调函数`abstract fun onProgress(p: `[`Progress`](../../com.drake.net.component/-progress/index.md)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) |

+ 5 - 0
docs/api/net/com.drake.net.interfaces/-progress-listener/interval-byte-count.md

@@ -0,0 +1,5 @@
+[net](../../index.md) / [com.drake.net.interfaces](../index.md) / [ProgressListener](index.md) / [intervalByteCount](./interval-byte-count.md)
+
+# intervalByteCount
+
+`var intervalByteCount: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)

+ 1 - 1
docs/api/net/com.drake.net.request/-progress-listener/interval.md → docs/api/net/com.drake.net.interfaces/-progress-listener/interval.md

@@ -1,4 +1,4 @@
-[net](../../index.md) / [com.drake.net.request](../index.md) / [ProgressListener](index.md) / [interval](./interval.md)
+[net](../../index.md) / [com.drake.net.interfaces](../index.md) / [ProgressListener](index.md) / [interval](./interval.md)
 
 # interval
 

+ 8 - 0
docs/api/net/com.drake.net.interfaces/-progress-listener/on-progress.md

@@ -0,0 +1,8 @@
+[net](../../index.md) / [com.drake.net.interfaces](../index.md) / [ProgressListener](index.md) / [onProgress](./on-progress.md)
+
+# onProgress
+
+`abstract fun onProgress(p: `[`Progress`](../../com.drake.net.component/-progress/index.md)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)
+
+监听上传/下载进度回调函数
+

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

@@ -6,4 +6,5 @@
 
 | Name | Summary |
 |---|---|
-| [NetCallback](-net-callback/index.md) | `abstract class NetCallback<T> : Callback` |
+| [NetCallback](-net-callback/index.md) | 提供泛型转换特性 相对于OkHttp的Callback新增三个回调函数: [onSuccess](-net-callback/on-error.md) [onComplete](-net-callback/on-complete.md) 这三个函数都运行在主线程上`abstract class NetCallback<T> : Callback` |
+| [ProgressListener](-progress-listener/index.md) | 进度监听器, 为下载和上传两者`abstract class ProgressListener` |

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

@@ -0,0 +1,11 @@
+[net](../index.md) / [com.drake.net.okhttp](./index.md)
+
+## Package com.drake.net.okhttp
+
+### Extensions for External Classes
+
+| Name | Summary |
+|---|---|
+| [okhttp3.Call](okhttp3.-call/index.md) |  |
+| [okhttp3.OkHttpClient](okhttp3.-ok-http-client/index.md) |  |
+| [okhttp3.OkHttpClient.Builder](okhttp3.-ok-http-client.-builder/index.md) |  |

+ 8 - 0
docs/api/net/com.drake.net.okhttp/okhttp3.-call/attach-to-net.md

@@ -0,0 +1,8 @@
+[net](../../index.md) / [com.drake.net.okhttp](../index.md) / [okhttp3.Call](index.md) / [attachToNet](./attach-to-net.md)
+
+# attachToNet
+
+`fun Call.attachToNet(): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)
+
+Call附着到Net上
+

+ 8 - 0
docs/api/net/com.drake.net.okhttp/okhttp3.-call/detach-from-net.md

@@ -0,0 +1,8 @@
+[net](../../index.md) / [com.drake.net.okhttp](../index.md) / [okhttp3.Call](index.md) / [detachFromNet](./detach-from-net.md)
+
+# detachFromNet
+
+`fun Call.detachFromNet(): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)
+
+Call从Net上分离释放引用
+

+ 8 - 0
docs/api/net/com.drake.net.okhttp/okhttp3.-call/index.md

@@ -0,0 +1,8 @@
+[net](../../index.md) / [com.drake.net.okhttp](../index.md) / [okhttp3.Call](./index.md)
+
+### Extensions for okhttp3.Call
+
+| Name | Summary |
+|---|---|
+| [attachToNet](attach-to-net.md) | Call附着到Net上`fun Call.attachToNet(): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) |
+| [detachFromNet](detach-from-net.md) | Call从Net上分离释放引用`fun Call.detachFromNet(): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) |

+ 4 - 1
docs/api/net/com.drake.net.utils/okhttp3.-ok-http-client.-builder/index.md → docs/api/net/com.drake.net.okhttp/okhttp3.-ok-http-client.-builder/index.md

@@ -1,4 +1,4 @@
-[net](../../index.md) / [com.drake.net.utils](../index.md) / [okhttp3.OkHttpClient.Builder](./index.md)
+[net](../../index.md) / [com.drake.net.okhttp](../index.md) / [okhttp3.OkHttpClient.Builder](./index.md)
 
 ### Extensions for okhttp3.OkHttpClient.Builder
 
@@ -11,3 +11,6 @@
 | [setHost](set-host.md) | 设置全局默认的Host, 在使用[com.drake.net.request.BaseRequest.setPath](../../com.drake.net.request/-base-request/set-path.md)的时候会成为默认的Host`fun Builder.setHost(host: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`): <ERROR CLASS>` |
 | [setLog](set-log.md) | 开启日志`fun Builder.setLog(enabled: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`): <ERROR CLASS>` |
 | [setRequestInterceptor](set-request-interceptor.md) | 添加轻量级的请求拦截器, 可以在每次请求之前修改参数或者客户端配置 该拦截器不同于OkHttp的Interceptor无需处理请求动作`fun Builder.setRequestInterceptor(interceptor: `[`RequestInterceptor`](../../com.drake.net.interceptor/-request-interceptor/index.md)`): <ERROR CLASS>` |
+| [setSSLCertificate](set-s-s-l-certificate.md) | `fun Builder.setSSLCertificate(trustManager: `[`X509TrustManager`](https://docs.oracle.com/javase/6/docs/api/javax/net/ssl/X509TrustManager.html)`?, bksFile: `[`InputStream`](https://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html)`? = null, password: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`? = null): <ERROR CLASS>`<br>`fun Builder.setSSLCertificate(vararg certificates: `[`InputStream`](https://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html)`, bksFile: `[`InputStream`](https://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html)`? = null, password: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`? = null): <ERROR CLASS>` |
+| [toNetOkhttp](to-net-okhttp.md) | Net拦截器代理OkHttp`fun Builder.toNetOkhttp(): <ERROR CLASS>` |
+| [trustSSLCertificate](trust-s-s-l-certificate.md) | 信任所有证书`fun Builder.trustSSLCertificate(): <ERROR CLASS>` |

+ 1 - 1
docs/api/net/com.drake.net.utils/okhttp3.-ok-http-client.-builder/on-dialog.md → docs/api/net/com.drake.net.okhttp/okhttp3.-ok-http-client.-builder/on-dialog.md

@@ -1,4 +1,4 @@
-[net](../../index.md) / [com.drake.net.utils](../index.md) / [okhttp3.OkHttpClient.Builder](index.md) / [onDialog](./on-dialog.md)
+[net](../../index.md) / [com.drake.net.okhttp](../index.md) / [okhttp3.OkHttpClient.Builder](index.md) / [onDialog](./on-dialog.md)
 
 # onDialog
 

+ 1 - 1
docs/api/net/com.drake.net.utils/okhttp3.-ok-http-client.-builder/on-error.md → docs/api/net/com.drake.net.okhttp/okhttp3.-ok-http-client.-builder/on-error.md

@@ -1,4 +1,4 @@
-[net](../../index.md) / [com.drake.net.utils](../index.md) / [okhttp3.OkHttpClient.Builder](index.md) / [onError](./on-error.md)
+[net](../../index.md) / [com.drake.net.okhttp](../index.md) / [okhttp3.OkHttpClient.Builder](index.md) / [onError](./on-error.md)
 
 # onError
 

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