mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
feat(api): improve /api/network/forwardProxy (#9110)
This commit is contained in:
30
API.md
30
API.md
@@ -1288,7 +1288,9 @@ View API token in <kbd>Settings - About</kbd>, request header: `Authorization: T
|
||||
"Cookie": ""
|
||||
}
|
||||
],
|
||||
"payload": {}
|
||||
"payload": {},
|
||||
"payloadEncoding": "text",
|
||||
"responseEncoding": "text"
|
||||
}
|
||||
```
|
||||
|
||||
@@ -1298,6 +1300,22 @@ View API token in <kbd>Settings - About</kbd>, request header: `Authorization: T
|
||||
* `contentType`: Content-Type, default is `application/json`
|
||||
* `headers`: HTTP headers
|
||||
* `payload`: HTTP payload, object or string
|
||||
* `payloadEncoding`: The encoding scheme used by `pyaload`, default is `text`, optional values are as follows
|
||||
|
||||
* `text`
|
||||
* `base64` | `base64-std`
|
||||
* `base64-url`
|
||||
* `base32` | `base32-std`
|
||||
* `base32-hex`
|
||||
* `hex`
|
||||
* `responseEncoding`: The encoding scheme used by `body` in response data, default is `text`, optional values are as follows
|
||||
|
||||
* `text`
|
||||
* `base64` | `base64-std`
|
||||
* `base64-url`
|
||||
* `base32` | `base32-std`
|
||||
* `base32-hex`
|
||||
* `hex`
|
||||
* Return value
|
||||
|
||||
```json
|
||||
@@ -1306,6 +1324,7 @@ View API token in <kbd>Settings - About</kbd>, request header: `Authorization: T
|
||||
"msg": "",
|
||||
"data": {
|
||||
"body": "",
|
||||
"bodyEncoding": "text",
|
||||
"contentType": "text/html",
|
||||
"elapsed": 1976,
|
||||
"headers": {
|
||||
@@ -1316,6 +1335,15 @@ View API token in <kbd>Settings - About</kbd>, request header: `Authorization: T
|
||||
}
|
||||
```
|
||||
|
||||
* `bodyEncoding`:The encoding scheme used by `body`, is consistent with field `responseEncoding` in request, default is `text`, optional values are as follows
|
||||
|
||||
* `text`
|
||||
* `base64` | `base64-std`
|
||||
* `base64-url`
|
||||
* `base32` | `base32-std`
|
||||
* `base32-hex`
|
||||
* `hex`
|
||||
|
||||
## System
|
||||
|
||||
### Get boot progress
|
||||
|
||||
Reference in New Issue
Block a user