mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2026-08-27 03:52:02 +00:00
docs: update parser and custom script docs
This commit is contained in:
@@ -134,8 +134,8 @@ HTTP客户端对象:
|
||||
http.get(url) // GET请求
|
||||
http.post(url, data) // POST请求
|
||||
http.putHeader(name, value) // 设置请求头
|
||||
http.sendForm(data) // 发送表单数据
|
||||
http.sendJson(data) // 发送JSON数据
|
||||
http.sendForm(url, data) // 发送表单数据
|
||||
http.sendJson(url, data) // 发送JSON数据
|
||||
```
|
||||
|
||||
### JsHttpResponse
|
||||
|
||||
@@ -89,9 +89,9 @@ var java;
|
||||
* @property {function(): JsHttpClient} clearHeaders - 清空所有请求头(保留默认头)
|
||||
* @property {function(): Object} getHeaders - 获取所有请求头
|
||||
* @property {function(number): JsHttpClient} setTimeout - 设置请求超时时间(秒)
|
||||
* @property {function(Object): JsHttpResponse} sendForm - 发送简单表单数据
|
||||
* @property {function(string, Object): JsHttpResponse} sendForm - 发送简单表单数据
|
||||
* @property {function(string, Object): JsHttpResponse} sendMultipartForm - 发送multipart表单数据(仅支持文本字段)
|
||||
* @property {function(any): JsHttpResponse} sendJson - 发送JSON数据
|
||||
* @property {function(string, any): JsHttpResponse} sendJson - 发送JSON数据
|
||||
* @property {function(string): string} urlEncode - URL编码(静态方法)
|
||||
* @property {function(string): string} urlDecode - URL解码(静态方法)
|
||||
*/
|
||||
|
||||
@@ -37,10 +37,10 @@
|
||||
|
||||
<!-- 将文件输出设置成异步输出 -->
|
||||
<appender name="ASYNC-FILE" class="ch.qos.logback.classic.AsyncAppender">
|
||||
<!-- 不丢失日志.默认的,如果队列的80%已满,则会丢弃TRACT、DEBUG、INFO级别的日志 -->
|
||||
<discardingThreshold>0</discardingThreshold>
|
||||
<!-- 队列剩余 20% 时开始丢弃 TRACE/DEBUG/INFO 级别日志,避免阻塞调用线程 -->
|
||||
<discardingThreshold>20</discardingThreshold>
|
||||
<!-- 更改默认的队列的深度,该值会影响性能.默认值为256 -->
|
||||
<queueSize>256</queueSize>
|
||||
<queueSize>512</queueSize>
|
||||
<!-- 添加附加的appender,最多只能添加一个 -->
|
||||
<appender-ref ref="FILE"/>
|
||||
</appender>
|
||||
|
||||
Reference in New Issue
Block a user