mock-service-cli 4.11.0 → 4.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-client/client.js +5 -3
- package/dist/meta.json +26 -8
- package/dist/runtime.js +4 -4
- package/docs/api-client.md +2 -0
- package/package.json +1 -1
package/docs/api-client.md
CHANGED
|
@@ -91,6 +91,8 @@ Tests 面板提供状态码、响应头、耗时及 JSON Pointer 字段的断言
|
|
|
91
91
|
|
|
92
92
|
导出提供原生集合 JSON 和单请求 cURL;保留变量引用。文件导出为 `@SELECT_FILE` 占位,需要使用者指定路径。
|
|
93
93
|
|
|
94
|
+
cURL 中的 `Connection`、`Host`、`Content-Length` 等由客户端管理的请求头会保留在 Headers 中但自动停用,导入预览会列出提示,发送时由客户端处理。已导入的旧请求如出现“请求头由客户端管理”,可取消勾选对应请求头或重新导入。
|
|
95
|
+
|
|
94
96
|
## 访问控制与资源限制
|
|
95
97
|
|
|
96
98
|
`--host` 与 `--auth` 独立,可单独使用或组合使用。`--host` 开放局域网访问,传入文件时沿用现有 IP/CIDR 白名单规则;`--auth` 为页面、API 和执行结果启用密码认证,单独使用时仍仅监听本机。不设置 `--auth` 时无需密码,仍保留会话隔离以及 Host、Origin 和 API 令牌检查。显式开放 LAN 后,请求从服务端机器发出,具有该机器的网络可达性。局域网服务本身使用 HTTP,应仅在可信网络中使用。
|
package/package.json
CHANGED