Skip to content

Commit

Permalink
doc: 开发文档
Browse files Browse the repository at this point in the history
  • Loading branch information
liangjingkanji committed Aug 8, 2023
1 parent d071efc commit 0bb12fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
NetConfig.initialize(Api.HOST, this, okHttpClientBuilder)
```

!!! failure "指定上下文"
!!! failure "强制初始化"
如果是多进程项目(例如Xposed)必须初始化, 因为多进程无法自动指定Context

| 可配置选项 | 描述 |
Expand Down
9 changes: 5 additions & 4 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Net是基于[OkHttp](https://github.com/square/okhttp)/协程的非侵入式框
## 使用

<br>
这里演示发起网络`请求网站内容`的三个步骤
发起网络请求的三个步骤

1. 创建作用域
1. 发起请求动作
Expand Down Expand Up @@ -48,11 +48,12 @@ Net是基于[OkHttp](https://github.com/square/okhttp)/协程的非侵入式框
}
```

多个网络请求在同一个作用域内可以统一控制, 如果多个网络请求之间毫无关联, 可以创建多个作用域来请求
多个网络请求在同一个作用域内可以统一管理

> 多进程或Xposed项目要求先[初始化](config.md/#_1)
如果多个网络请求之间毫无关联, 可以创建多个作用域来请求

<br>
!!! failure "强制初始化"
多进程或Xposed项目要求先[初始化](config.md/#_1)

并发请求错误示例

Expand Down

0 comments on commit 0bb12fb

Please sign in to comment.