@maiyunnet/kebab 9.18.1 → 9.18.2

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/doc/kebab-rag.md CHANGED
@@ -1438,7 +1438,7 @@ index/variables/VER.md
1438
1438
 
1439
1439
  # Variable: VER
1440
1440
 
1441
- > `const` **VER**: `"9.18.1"` = `'9.18.1'`
1441
+ > `const` **VER**: `"9.18.2"` = `'9.18.2'`
1442
1442
 
1443
1443
  Defined in: [index.ts:10](https://github.com/maiyunnet/kebab/blob/master/index.ts#L10)
1444
1444
 
@@ -127897,7 +127897,7 @@ lib/undici/functions/fetch.md
127897
127897
 
127898
127898
  > **fetch**(`input`, `init?`): `Promise`\<`Response`\>
127899
127899
 
127900
- Defined in: [lib/undici.ts:261](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L261)
127900
+ Defined in: [lib/undici.ts:292](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L292)
127901
127901
 
127902
127902
  发起一个完全兼容 fetch 的请求
127903
127903
 
@@ -127932,7 +127932,7 @@ lib/undici/functions/filterHeaders.md
127932
127932
 
127933
127933
  > **filterHeaders**(`headers`, `res?`, `filter?`): `Record`\<`string`, `string` \| `string`[]\>
127934
127934
 
127935
- Defined in: [lib/undici.ts:635](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L635)
127935
+ Defined in: [lib/undici.ts:672](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L672)
127936
127936
 
127937
127937
  剔除不代理的 header,返回新的 header
127938
127938
 
@@ -127973,7 +127973,7 @@ lib/undici/functions/getFormData.md
127973
127973
 
127974
127974
  > **getFormData**(): [`FormData`](../formdata/classes/FormData.md)
127975
127975
 
127976
- Defined in: [lib/undici.ts:619](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L619)
127976
+ Defined in: [lib/undici.ts:656](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L656)
127977
127977
 
127978
127978
  创建 FormData 对象
127979
127979
 
@@ -127994,7 +127994,7 @@ lib/undici/functions/get.md
127994
127994
 
127995
127995
  > **get**(`u`, `opt?`): `Promise`\<[`Response`](../response/classes/Response.md)\>
127996
127996
 
127997
- Defined in: [lib/undici.ts:138](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L138)
127997
+ Defined in: [lib/undici.ts:169](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L169)
127998
127998
 
127999
127999
  发起一个 get 请求
128000
128000
 
@@ -128056,7 +128056,7 @@ lib/undici/functions/getResponseJson.md
128056
128056
 
128057
128057
  > **getResponseJson**(`u`, `opt?`): `Promise`\<`any`\>
128058
128058
 
128059
- Defined in: [lib/undici.ts:249](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L249)
128059
+ Defined in: [lib/undici.ts:280](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L280)
128060
128060
 
128061
128061
  发起 GET 请求并解析 JSON 响应
128062
128062
 
@@ -128093,7 +128093,7 @@ lib/undici/functions/mproxyData.md
128093
128093
 
128094
128094
  > **mproxyData**(`ctr`): `any`
128095
128095
 
128096
- Defined in: [lib/undici.ts:741](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L741)
128096
+ Defined in: [lib/undici.ts:778](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L778)
128097
128097
 
128098
128098
  获取 mproxy 的附加数据
128099
128099
 
@@ -128122,7 +128122,7 @@ lib/undici/functions/mproxy.md
128122
128122
 
128123
128123
  > **mproxy**(`ctr`, `auth`, `opt?`): `Promise`\<`number`\>
128124
128124
 
128125
- Defined in: [lib/undici.ts:675](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L675)
128125
+ Defined in: [lib/undici.ts:712](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L712)
128126
128126
 
128127
128127
  正向 mproxy 代理,注意提前处理不要自动处理 post 数据,读取 get 的 url 为实际请求地址
128128
128128
  get: url, auth
@@ -128164,7 +128164,7 @@ lib/undici/functions/open.md
128164
128164
 
128165
128165
  > **open**(`u`): [`Request`](../request/classes/Request.md)
128166
128166
 
128167
- Defined in: [lib/undici.ts:129](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L129)
128167
+ Defined in: [lib/undici.ts:160](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L160)
128168
128168
 
128169
128169
  创建一个请求对象
128170
128170
 
@@ -128191,7 +128191,7 @@ lib/undici/functions/postJson.md
128191
128191
 
128192
128192
  > **postJson**(`u`, `data`, `opt?`): `Promise`\<[`Response`](../response/classes/Response.md)\>
128193
128193
 
128194
- Defined in: [lib/undici.ts:163](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L163)
128194
+ Defined in: [lib/undici.ts:194](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L194)
128195
128195
 
128196
128196
  发起 JSON 请求
128197
128197
 
@@ -128232,7 +128232,7 @@ lib/undici/functions/postJsonResponseJson.md
128232
128232
 
128233
128233
  > **postJsonResponseJson**(`u`, `data`, `opt?`): `Promise`\<`any`\>
128234
128234
 
128235
- Defined in: [lib/undici.ts:221](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L221)
128235
+ Defined in: [lib/undici.ts:252](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L252)
128236
128236
 
128237
128237
  发起 JSON 请求并解析 JSON 响应
128238
128238
 
@@ -128275,7 +128275,7 @@ lib/undici/functions/post.md
128275
128275
 
128276
128276
  > **post**(`u`, `data`, `opt?`): `Promise`\<[`Response`](../response/classes/Response.md)\>
128277
128277
 
128278
- Defined in: [lib/undici.ts:148](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L148)
128278
+ Defined in: [lib/undici.ts:179](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L179)
128279
128279
 
128280
128280
  发起一个 post 请求
128281
128281
 
@@ -128316,7 +128316,7 @@ lib/undici/functions/postResponseJson.md
128316
128316
 
128317
128317
  > **postResponseJson**(`u`, `data`, `opt?`): `Promise`\<`any`\>
128318
128318
 
128319
- Defined in: [lib/undici.ts:236](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L236)
128319
+ Defined in: [lib/undici.ts:267](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L267)
128320
128320
 
128321
128321
  发起 POST 请求并解析 JSON 响应
128322
128322
 
@@ -128359,7 +128359,7 @@ lib/undici/functions/request.md
128359
128359
 
128360
128360
  > **request**(`u`, `data?`, `opt?`): `Promise`\<[`Response`](../response/classes/Response.md)\>
128361
128361
 
128362
- Defined in: [lib/undici.ts:433](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L433)
128362
+ Defined in: [lib/undici.ts:470](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L470)
128363
128363
 
128364
128364
  发起一个请求
128365
128365
 
@@ -128396,7 +128396,7 @@ lib/undici/functions/rproxy.md
128396
128396
 
128397
128397
  > **rproxy**(`ctr`, `route`, `opt?`): `Promise`\<`boolean`\>
128398
128398
 
128399
- Defined in: [lib/undici.ts:771](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L771)
128399
+ Defined in: [lib/undici.ts:808](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L808)
128400
128400
 
128401
128401
  反向代理,将本服务器的某个路由反代到其他网址
128402
128402
 
@@ -128485,7 +128485,7 @@ lib/undici/interfaces/IMproxyOptions.md
128485
128485
 
128486
128486
  # Interface: IMproxyOptions
128487
128487
 
128488
- Defined in: [lib/undici.ts:902](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L902)
128488
+ Defined in: [lib/undici.ts:943](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L943)
128489
128489
 
128490
128490
  正向代理请求的传入参数选项
128491
128491
 
@@ -128495,7 +128495,7 @@ Defined in: [lib/undici.ts:902](https://github.com/maiyunnet/kebab/blob/master/l
128495
128495
 
128496
128496
  > `optional` **filter?**: (`h`) => `boolean`
128497
128497
 
128498
- Defined in: [lib/undici.ts:911](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L911)
128498
+ Defined in: [lib/undici.ts:956](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L956)
128499
128499
 
128500
128500
  过滤 header,返回 true 则留下
128501
128501
 
@@ -128515,7 +128515,7 @@ Defined in: [lib/undici.ts:911](https://github.com/maiyunnet/kebab/blob/master/l
128515
128515
 
128516
128516
  > `optional` **follow?**: `number`
128517
128517
 
128518
- Defined in: [lib/undici.ts:905](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L905)
128518
+ Defined in: [lib/undici.ts:946](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L946)
128519
128519
 
128520
128520
  ***
128521
128521
 
@@ -128523,7 +128523,7 @@ Defined in: [lib/undici.ts:905](https://github.com/maiyunnet/kebab/blob/master/l
128523
128523
 
128524
128524
  > `optional` **headers?**: [`THttpHeaders`](../type-aliases/THttpHeaders.md)
128525
128525
 
128526
- Defined in: [lib/undici.ts:909](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L909)
128526
+ Defined in: [lib/undici.ts:950](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L950)
128527
128527
 
128528
128528
  ***
128529
128529
 
@@ -128531,17 +128531,27 @@ Defined in: [lib/undici.ts:909](https://github.com/maiyunnet/kebab/blob/master/l
128531
128531
 
128532
128532
  > `optional` **hosts?**: `string` \| `Record`\<`string`, `string`\>
128533
128533
 
128534
- Defined in: [lib/undici.ts:907](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L907)
128534
+ Defined in: [lib/undici.ts:948](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L948)
128535
128535
 
128536
128536
  自定义 host 映射,如 {'www.maiyun.net': '127.0.0.1'},或全部映射到一个 host
128537
128537
 
128538
128538
  ***
128539
128539
 
128540
+ ### keepAliveTimeout?
128541
+
128542
+ > `optional` **keepAliveTimeout?**: `number`
128543
+
128544
+ Defined in: [lib/undici.ts:952](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L952)
128545
+
128546
+ 空闲连接允许复用的最长秒数;非正数或无效值按未设置处理;默认无服务端提示时为 4 秒,有提示时采用提示值减 2 秒且最多 600 秒
128547
+
128548
+ ***
128549
+
128540
128550
  ### local?
128541
128551
 
128542
128552
  > `optional` **local?**: `string`
128543
128553
 
128544
- Defined in: [lib/undici.ts:908](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L908)
128554
+ Defined in: [lib/undici.ts:949](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L949)
128545
128555
 
128546
128556
  ***
128547
128557
 
@@ -128549,17 +128559,27 @@ Defined in: [lib/undici.ts:908](https://github.com/maiyunnet/kebab/blob/master/l
128549
128559
 
128550
128560
  > `optional` **reuse?**: `string` \| `Agent` \| `ProxyAgent`
128551
128561
 
128552
- Defined in: [lib/undici.ts:913](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L913)
128562
+ Defined in: [lib/undici.ts:958](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L958)
128553
128563
 
128554
128564
  默认为 default
128555
128565
 
128556
128566
  ***
128557
128567
 
128568
+ ### reuseTimeout?
128569
+
128570
+ > `optional` **reuseTimeout?**: `number`
128571
+
128572
+ Defined in: [lib/undici.ts:954](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L954)
128573
+
128574
+ 连接建立后允许承接新请求的最长秒数;非正数或无效值按未设置处理;达到后不再复用但不会中断在途请求,默认不限制
128575
+
128576
+ ***
128577
+
128558
128578
  ### timeout?
128559
128579
 
128560
128580
  > `optional` **timeout?**: `number`
128561
128581
 
128562
- Defined in: [lib/undici.ts:904](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L904)
128582
+ Defined in: [lib/undici.ts:945](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L945)
128563
128583
 
128564
128584
  秒数,默认 300 秒
128565
128585
 
@@ -128574,7 +128594,7 @@ lib/undici/interfaces/IRequestOptions.md
128574
128594
 
128575
128595
  # Interface: IRequestOptions
128576
128596
 
128577
- Defined in: [lib/undici.ts:863](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L863)
128597
+ Defined in: [lib/undici.ts:900](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L900)
128578
128598
 
128579
128599
  请求的传入参数选项
128580
128600
 
@@ -128584,7 +128604,7 @@ Defined in: [lib/undici.ts:863](https://github.com/maiyunnet/kebab/blob/master/l
128584
128604
 
128585
128605
  > `optional` **cookie?**: `Record`\<`string`, [`ICookie`](../../cookie/interfaces/ICookie.md)\>
128586
128606
 
128587
- Defined in: [lib/undici.ts:894](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L894)
128607
+ Defined in: [lib/undici.ts:935](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L935)
128588
128608
 
128589
128609
  cookie 托管对象
128590
128610
 
@@ -128594,7 +128614,7 @@ cookie 托管对象
128594
128614
 
128595
128615
  > `optional` **follow?**: `number`
128596
128616
 
128597
- Defined in: [lib/undici.ts:875](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L875)
128617
+ Defined in: [lib/undici.ts:912](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L912)
128598
128618
 
128599
128619
  追踪 location 次数,0 为不追踪,默认为 0
128600
128620
 
@@ -128604,7 +128624,7 @@ Defined in: [lib/undici.ts:875](https://github.com/maiyunnet/kebab/blob/master/l
128604
128624
 
128605
128625
  > `optional` **headers?**: [`THttpHeaders`](../type-aliases/THttpHeaders.md)
128606
128626
 
128607
- Defined in: [lib/undici.ts:880](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L880)
128627
+ Defined in: [lib/undici.ts:917](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L917)
128608
128628
 
128609
128629
  ***
128610
128630
 
@@ -128612,7 +128632,7 @@ Defined in: [lib/undici.ts:880](https://github.com/maiyunnet/kebab/blob/master/l
128612
128632
 
128613
128633
  > `optional` **hosts?**: `string` \| `Record`\<`string`, `string`\>
128614
128634
 
128615
- Defined in: [lib/undici.ts:877](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L877)
128635
+ Defined in: [lib/undici.ts:914](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L914)
128616
128636
 
128617
128637
  自定义 host 映射,如 {'www.maiyun.net': '127.0.0.1'},或全部映射到一个 host
128618
128638
 
@@ -128622,17 +128642,27 @@ Defined in: [lib/undici.ts:877](https://github.com/maiyunnet/kebab/blob/master/l
128622
128642
 
128623
128643
  > `optional` **keep?**: `boolean`
128624
128644
 
128625
- Defined in: [lib/undici.ts:890](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L890)
128645
+ Defined in: [lib/undici.ts:927](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L927)
128626
128646
 
128627
128647
  连接是否保持长连接(即是否允许复用),默认为 true
128628
128648
 
128629
128649
  ***
128630
128650
 
128651
+ ### keepAliveTimeout?
128652
+
128653
+ > `optional` **keepAliveTimeout?**: `number`
128654
+
128655
+ Defined in: [lib/undici.ts:929](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L929)
128656
+
128657
+ 空闲连接允许复用的最长秒数;非正数或无效值按未设置处理;默认无服务端提示时为 4 秒,有提示时采用提示值减 2 秒且最多 600 秒;自定义 Agent 由其自身配置
128658
+
128659
+ ***
128660
+
128631
128661
  ### local?
128632
128662
 
128633
128663
  > `optional` **local?**: `string`
128634
128664
 
128635
- Defined in: [lib/undici.ts:879](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L879)
128665
+ Defined in: [lib/undici.ts:916](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L916)
128636
128666
 
128637
128667
  ***
128638
128668
 
@@ -128640,7 +128670,7 @@ Defined in: [lib/undici.ts:879](https://github.com/maiyunnet/kebab/blob/master/l
128640
128670
 
128641
128671
  > `optional` **log?**: `boolean`
128642
128672
 
128643
- Defined in: [lib/undici.ts:896](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L896)
128673
+ Defined in: [lib/undici.ts:937](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L937)
128644
128674
 
128645
128675
  若有异常写入文件日志,默认为 true
128646
128676
 
@@ -128650,7 +128680,7 @@ Defined in: [lib/undici.ts:896](https://github.com/maiyunnet/kebab/blob/master/l
128650
128680
 
128651
128681
  > `optional` **method?**: `"GET"` \| `"POST"` \| `"PUT"` \| `"DELETE"` \| `"OPTIONS"`
128652
128682
 
128653
- Defined in: [lib/undici.ts:864](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L864)
128683
+ Defined in: [lib/undici.ts:901](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L901)
128654
128684
 
128655
128685
  ***
128656
128686
 
@@ -128658,7 +128688,7 @@ Defined in: [lib/undici.ts:864](https://github.com/maiyunnet/kebab/blob/master/l
128658
128688
 
128659
128689
  > `optional` **mproxy?**: `object`
128660
128690
 
128661
- Defined in: [lib/undici.ts:882](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L882)
128691
+ Defined in: [lib/undici.ts:919](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L919)
128662
128692
 
128663
128693
  正向 mproxy 代理,url 如 https://xxx/abc
128664
128694
 
@@ -128686,7 +128716,7 @@ Defined in: [lib/undici.ts:882](https://github.com/maiyunnet/kebab/blob/master/l
128686
128716
 
128687
128717
  > `optional` **retry?**: `number`
128688
128718
 
128689
- Defined in: [lib/undici.ts:869](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L869)
128719
+ Defined in: [lib/undici.ts:906](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L906)
128690
128720
 
128691
128721
  网络异常后的重试次数,默认 0;流式请求体不可重试,非幂等请求需由调用方保证安全
128692
128722
 
@@ -128696,7 +128726,7 @@ Defined in: [lib/undici.ts:869](https://github.com/maiyunnet/kebab/blob/master/l
128696
128726
 
128697
128727
  > `optional` **retryJson?**: `number`
128698
128728
 
128699
- Defined in: [lib/undici.ts:871](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L871)
128729
+ Defined in: [lib/undici.ts:908](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L908)
128700
128730
 
128701
128731
  JSON 解析失败后的重试次数,默认 0;仅适用于 ResponseJson 快捷方法,非幂等请求需由调用方保证安全
128702
128732
 
@@ -128706,7 +128736,7 @@ JSON 解析失败后的重试次数,默认 0;仅适用于 ResponseJson 快
128706
128736
 
128707
128737
  > `optional` **retryJsonHandler?**: (`json`) => `boolean`
128708
128738
 
128709
- Defined in: [lib/undici.ts:873](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L873)
128739
+ Defined in: [lib/undici.ts:910](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L910)
128710
128740
 
128711
128741
  JSON 重试验证方法;返回 false 时按 retryJson 的设置重试,仅适用于 ResponseJson 快捷方法
128712
128742
 
@@ -128726,17 +128756,27 @@ JSON 重试验证方法;返回 false 时按 retryJson 的设置重试,仅适
128726
128756
 
128727
128757
  > `optional` **reuse?**: `string` \| `Agent` \| `ProxyAgent`
128728
128758
 
128729
- Defined in: [lib/undici.ts:892](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L892)
128759
+ Defined in: [lib/undici.ts:933](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L933)
128730
128760
 
128731
128761
  复用池名/Agent,默认为 default
128732
128762
 
128733
128763
  ***
128734
128764
 
128765
+ ### reuseTimeout?
128766
+
128767
+ > `optional` **reuseTimeout?**: `number`
128768
+
128769
+ Defined in: [lib/undici.ts:931](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L931)
128770
+
128771
+ 连接建立后允许承接新请求的最长秒数;非正数或无效值按未设置处理;达到后不再复用但不会中断在途请求,默认不限制;自定义 Agent 由其自身配置
128772
+
128773
+ ***
128774
+
128735
128775
  ### save?
128736
128776
 
128737
128777
  > `optional` **save?**: `string`
128738
128778
 
128739
- Defined in: [lib/undici.ts:878](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L878)
128779
+ Defined in: [lib/undici.ts:915](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L915)
128740
128780
 
128741
128781
  ***
128742
128782
 
@@ -128744,7 +128784,7 @@ Defined in: [lib/undici.ts:878](https://github.com/maiyunnet/kebab/blob/master/l
128744
128784
 
128745
128785
  > `optional` **signal?**: `AbortSignal`
128746
128786
 
128747
- Defined in: [lib/undici.ts:898](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L898)
128787
+ Defined in: [lib/undici.ts:939](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L939)
128748
128788
 
128749
128789
  请求中止信号
128750
128790
 
@@ -128754,7 +128794,7 @@ Defined in: [lib/undici.ts:898](https://github.com/maiyunnet/kebab/blob/master/l
128754
128794
 
128755
128795
  > `optional` **timeout?**: `number`
128756
128796
 
128757
- Defined in: [lib/undici.ts:867](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L867)
128797
+ Defined in: [lib/undici.ts:904](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L904)
128758
128798
 
128759
128799
  秒数,默认 300 秒
128760
128800
 
@@ -128764,7 +128804,7 @@ Defined in: [lib/undici.ts:867](https://github.com/maiyunnet/kebab/blob/master/l
128764
128804
 
128765
128805
  > `optional` **type?**: `"form"` \| `"json"`
128766
128806
 
128767
- Defined in: [lib/undici.ts:865](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L865)
128807
+ Defined in: [lib/undici.ts:902](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L902)
128768
128808
 
128769
128809
  lib/undici/interfaces/IRproxyOptions.md
128770
128810
  ---
@@ -128777,7 +128817,7 @@ lib/undici/interfaces/IRproxyOptions.md
128777
128817
 
128778
128818
  # Interface: IRproxyOptions
128779
128819
 
128780
- Defined in: [lib/undici.ts:917](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L917)
128820
+ Defined in: [lib/undici.ts:962](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L962)
128781
128821
 
128782
128822
  反向代理请求的传入参数选项
128783
128823
 
@@ -128787,7 +128827,7 @@ Defined in: [lib/undici.ts:917](https://github.com/maiyunnet/kebab/blob/master/l
128787
128827
 
128788
128828
  > `optional` **body?**: `string` \| `Buffer`\<`ArrayBufferLike`\> \| `Readable`
128789
128829
 
128790
- Defined in: [lib/undici.ts:936](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L936)
128830
+ Defined in: [lib/undici.ts:985](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L985)
128791
128831
 
128792
128832
  手动传入请求体(优先于原始 req 流),用于 req 流已消费后仍需转发 body 的场景
128793
128833
 
@@ -128797,7 +128837,7 @@ Defined in: [lib/undici.ts:936](https://github.com/maiyunnet/kebab/blob/master/l
128797
128837
 
128798
128838
  > `optional` **filter?**: (`h`) => `boolean`
128799
128839
 
128800
- Defined in: [lib/undici.ts:926](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L926)
128840
+ Defined in: [lib/undici.ts:975](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L975)
128801
128841
 
128802
128842
  过滤 header,返回 true 则留下
128803
128843
 
@@ -128817,7 +128857,7 @@ Defined in: [lib/undici.ts:926](https://github.com/maiyunnet/kebab/blob/master/l
128817
128857
 
128818
128858
  > `optional` **follow?**: `number`
128819
128859
 
128820
- Defined in: [lib/undici.ts:920](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L920)
128860
+ Defined in: [lib/undici.ts:965](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L965)
128821
128861
 
128822
128862
  ***
128823
128863
 
@@ -128825,7 +128865,7 @@ Defined in: [lib/undici.ts:920](https://github.com/maiyunnet/kebab/blob/master/l
128825
128865
 
128826
128866
  > `optional` **headers?**: [`THttpHeaders`](../type-aliases/THttpHeaders.md)
128827
128867
 
128828
- Defined in: [lib/undici.ts:924](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L924)
128868
+ Defined in: [lib/undici.ts:969](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L969)
128829
128869
 
128830
128870
  ***
128831
128871
 
@@ -128833,17 +128873,27 @@ Defined in: [lib/undici.ts:924](https://github.com/maiyunnet/kebab/blob/master/l
128833
128873
 
128834
128874
  > `optional` **hosts?**: `string` \| `Record`\<`string`, `string`\>
128835
128875
 
128836
- Defined in: [lib/undici.ts:922](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L922)
128876
+ Defined in: [lib/undici.ts:967](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L967)
128837
128877
 
128838
128878
  自定义 host 映射,如 {'www.maiyun.net': '127.0.0.1'},或全部映射到一个 host
128839
128879
 
128840
128880
  ***
128841
128881
 
128882
+ ### keepAliveTimeout?
128883
+
128884
+ > `optional` **keepAliveTimeout?**: `number`
128885
+
128886
+ Defined in: [lib/undici.ts:971](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L971)
128887
+
128888
+ 空闲连接允许复用的最长秒数;非正数或无效值按未设置处理;默认无服务端提示时为 4 秒,有提示时采用提示值减 2 秒且最多 600 秒
128889
+
128890
+ ***
128891
+
128842
128892
  ### local?
128843
128893
 
128844
128894
  > `optional` **local?**: `string`
128845
128895
 
128846
- Defined in: [lib/undici.ts:923](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L923)
128896
+ Defined in: [lib/undici.ts:968](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L968)
128847
128897
 
128848
128898
  ***
128849
128899
 
@@ -128851,7 +128901,7 @@ Defined in: [lib/undici.ts:923](https://github.com/maiyunnet/kebab/blob/master/l
128851
128901
 
128852
128902
  > `optional` **mproxy?**: `object`
128853
128903
 
128854
- Defined in: [lib/undici.ts:928](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L928)
128904
+ Defined in: [lib/undici.ts:977](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L977)
128855
128905
 
128856
128906
  正向 mproxy 代理,url 如 https://xxx/abc
128857
128907
 
@@ -128879,7 +128929,7 @@ Defined in: [lib/undici.ts:928](https://github.com/maiyunnet/kebab/blob/master/l
128879
128929
 
128880
128930
  > `optional` **querys?**: `Record`\<`string`, `any`\>
128881
128931
 
128882
- Defined in: [lib/undici.ts:938](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L938)
128932
+ Defined in: [lib/undici.ts:987](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L987)
128883
128933
 
128884
128934
  自定义 GET 查询参数,传入后直接替换代理目标 URL 的整个 query string
128885
128935
 
@@ -128889,17 +128939,27 @@ Defined in: [lib/undici.ts:938](https://github.com/maiyunnet/kebab/blob/master/l
128889
128939
 
128890
128940
  > `optional` **reuse?**: `string` \| `Agent` \| `ProxyAgent`
128891
128941
 
128892
- Defined in: [lib/undici.ts:940](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L940)
128942
+ Defined in: [lib/undici.ts:989](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L989)
128893
128943
 
128894
128944
  默认为 default
128895
128945
 
128896
128946
  ***
128897
128947
 
128948
+ ### reuseTimeout?
128949
+
128950
+ > `optional` **reuseTimeout?**: `number`
128951
+
128952
+ Defined in: [lib/undici.ts:973](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L973)
128953
+
128954
+ 连接建立后允许承接新请求的最长秒数;非正数或无效值按未设置处理;达到后不再复用但不会中断在途请求,默认不限制
128955
+
128956
+ ***
128957
+
128898
128958
  ### timeout?
128899
128959
 
128900
128960
  > `optional` **timeout?**: `number`
128901
128961
 
128902
- Defined in: [lib/undici.ts:919](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L919)
128962
+ Defined in: [lib/undici.ts:964](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L964)
128903
128963
 
128904
128964
  秒数,默认 300 秒
128905
128965
 
@@ -128962,7 +129022,7 @@ Defined in: [lib/undici/request.ts:30](https://github.com/maiyunnet/kebab/blob/m
128962
129022
 
128963
129023
  > **follow**(`follow?`): `this`
128964
129024
 
128965
- Defined in: [lib/undici/request.ts:96](https://github.com/maiyunnet/kebab/blob/master/lib/undici/request.ts#L96)
129025
+ Defined in: [lib/undici/request.ts:114](https://github.com/maiyunnet/kebab/blob/master/lib/undici/request.ts#L114)
128966
129026
 
128967
129027
  设置是否跟随请求方的 location,留空为跟随,不设置为不跟随
128968
129028
 
@@ -128996,7 +129056,7 @@ method get 方法别名
128996
129056
 
128997
129057
  > **headers**(`headers`): `this`
128998
129058
 
128999
- Defined in: [lib/undici/request.ts:132](https://github.com/maiyunnet/kebab/blob/master/lib/undici/request.ts#L132)
129059
+ Defined in: [lib/undici/request.ts:150](https://github.com/maiyunnet/kebab/blob/master/lib/undici/request.ts#L150)
129000
129060
 
129001
129061
  批量设置提交的 headers
129002
129062
 
@@ -129016,7 +129076,7 @@ Defined in: [lib/undici/request.ts:132](https://github.com/maiyunnet/kebab/blob/
129016
129076
 
129017
129077
  > **hosts**(`hosts`): `this`
129018
129078
 
129019
- Defined in: [lib/undici/request.ts:105](https://github.com/maiyunnet/kebab/blob/master/lib/undici/request.ts#L105)
129079
+ Defined in: [lib/undici/request.ts:123](https://github.com/maiyunnet/kebab/blob/master/lib/undici/request.ts#L123)
129020
129080
 
129021
129081
  设置域名 -> ip的对应键值,就像电脑里的 hosts 一样
129022
129082
 
@@ -129046,11 +129106,33 @@ type json 方法别名
129046
129106
 
129047
129107
  ***
129048
129108
 
129109
+ ### keepAliveTimeout()
129110
+
129111
+ > **keepAliveTimeout**(`timeout`): `this`
129112
+
129113
+ Defined in: [lib/undici/request.ts:87](https://github.com/maiyunnet/kebab/blob/master/lib/undici/request.ts#L87)
129114
+
129115
+ 设置空闲连接允许复用的最长时间
129116
+
129117
+ #### Parameters
129118
+
129119
+ ##### timeout
129120
+
129121
+ `number`
129122
+
129123
+ 秒数;非正数或无效值按未设置处理;默认无服务端提示时为 4 秒,有提示时采用提示值减 2 秒且最多 600 秒
129124
+
129125
+ #### Returns
129126
+
129127
+ `this`
129128
+
129129
+ ***
129130
+
129049
129131
  ### local()
129050
129132
 
129051
129133
  > **local**(`addr`): `this`
129052
129134
 
129053
- Defined in: [lib/undici/request.ts:123](https://github.com/maiyunnet/kebab/blob/master/lib/undici/request.ts#L123)
129135
+ Defined in: [lib/undici/request.ts:141](https://github.com/maiyunnet/kebab/blob/master/lib/undici/request.ts#L141)
129054
129136
 
129055
129137
  设置使用的本地网卡 IP
129056
129138
 
@@ -129104,7 +129186,7 @@ method post 方法别名
129104
129186
 
129105
129187
  > **request**(`cookie?`): `Promise`\<[`Response`](../../response/classes/Response.md)\>
129106
129188
 
129107
- Defined in: [lib/undici/request.ts:152](https://github.com/maiyunnet/kebab/blob/master/lib/undici/request.ts#L152)
129189
+ Defined in: [lib/undici/request.ts:170](https://github.com/maiyunnet/kebab/blob/master/lib/undici/request.ts#L170)
129108
129190
 
129109
129191
  发起请求
129110
129192
 
@@ -129124,7 +129206,7 @@ Defined in: [lib/undici/request.ts:152](https://github.com/maiyunnet/kebab/blob/
129124
129206
 
129125
129207
  > **retry**(`retry?`): `this`
129126
129208
 
129127
- Defined in: [lib/undici/request.ts:87](https://github.com/maiyunnet/kebab/blob/master/lib/undici/request.ts#L87)
129209
+ Defined in: [lib/undici/request.ts:105](https://github.com/maiyunnet/kebab/blob/master/lib/undici/request.ts#L105)
129128
129210
 
129129
129211
  设置网络异常后的重试次数
129130
129212
 
@@ -129142,11 +129224,33 @@ Defined in: [lib/undici/request.ts:87](https://github.com/maiyunnet/kebab/blob/m
129142
129224
 
129143
129225
  ***
129144
129226
 
129227
+ ### reuseTimeout()
129228
+
129229
+ > **reuseTimeout**(`timeout`): `this`
129230
+
129231
+ Defined in: [lib/undici/request.ts:96](https://github.com/maiyunnet/kebab/blob/master/lib/undici/request.ts#L96)
129232
+
129233
+ 设置连接建立后允许承接新请求的最长时间
129234
+
129235
+ #### Parameters
129236
+
129237
+ ##### timeout
129238
+
129239
+ `number`
129240
+
129241
+ 秒数;非正数或无效值按未设置处理;达到后不再复用但不会中断在途请求,默认不限制
129242
+
129243
+ #### Returns
129244
+
129245
+ `this`
129246
+
129247
+ ***
129248
+
129145
129249
  ### save()
129146
129250
 
129147
129251
  > **save**(`save`): `this`
129148
129252
 
129149
- Defined in: [lib/undici/request.ts:114](https://github.com/maiyunnet/kebab/blob/master/lib/undici/request.ts#L114)
129253
+ Defined in: [lib/undici/request.ts:132](https://github.com/maiyunnet/kebab/blob/master/lib/undici/request.ts#L132)
129150
129254
 
129151
129255
  设置后将直接保存到本地文件,不会返回,save 为本地实体路径
129152
129256
 
@@ -129166,7 +129270,7 @@ Defined in: [lib/undici/request.ts:114](https://github.com/maiyunnet/kebab/blob/
129166
129270
 
129167
129271
  > **setHeader**(`name`, `val`): `this`
129168
129272
 
129169
- Defined in: [lib/undici/request.ts:142](https://github.com/maiyunnet/kebab/blob/master/lib/undici/request.ts#L142)
129273
+ Defined in: [lib/undici/request.ts:160](https://github.com/maiyunnet/kebab/blob/master/lib/undici/request.ts#L160)
129170
129274
 
129171
129275
  设置单条 header
129172
129276
 
@@ -129410,7 +129514,7 @@ lib/undici/type-aliases/THttpHeaders.md
129410
129514
 
129411
129515
  > **THttpHeaders** = `http.IncomingHttpHeaders` & `object`
129412
129516
 
129413
- Defined in: [lib/undici.ts:945](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L945)
129517
+ Defined in: [lib/undici.ts:994](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L994)
129414
129518
 
129415
129519
  http headers
129416
129520
 
@@ -132394,7 +132498,7 @@ sys/ctr/classes/Ctr.md
132394
132498
 
132395
132499
  # Class: Ctr
132396
132500
 
132397
- Defined in: [sys/ctr.ts:98](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L98)
132501
+ Defined in: [sys/ctr.ts:123](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L123)
132398
132502
 
132399
132503
  ## Constructors
132400
132504
 
@@ -132402,7 +132506,7 @@ Defined in: [sys/ctr.ts:98](https://github.com/maiyunnet/kebab/blob/master/sys/c
132402
132506
 
132403
132507
  > **new Ctr**(`config`, `req`, `res?`): `Ctr`
132404
132508
 
132405
- Defined in: [sys/ctr.ts:160](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L160)
132509
+ Defined in: [sys/ctr.ts:185](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L185)
132406
132510
 
132407
132511
  #### Parameters
132408
132512
 
@@ -132428,7 +132532,7 @@ Defined in: [sys/ctr.ts:160](https://github.com/maiyunnet/kebab/blob/master/sys/
132428
132532
 
132429
132533
  > `protected` **\_action**: `string` = `''`
132430
132534
 
132431
- Defined in: [sys/ctr.ts:104](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L104)
132535
+ Defined in: [sys/ctr.ts:129](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L129)
132432
132536
 
132433
132537
  当前的 action 名
132434
132538
 
@@ -132438,7 +132542,7 @@ Defined in: [sys/ctr.ts:104](https://github.com/maiyunnet/kebab/blob/master/sys/
132438
132542
 
132439
132543
  > `protected` **\_cacheTTL**: `number`
132440
132544
 
132441
- Defined in: [sys/ctr.ts:134](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L134)
132545
+ Defined in: [sys/ctr.ts:159](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L159)
132442
132546
 
132443
132547
  页面浏览器客户端缓存(单位:秒)
132444
132548
 
@@ -132448,7 +132552,7 @@ Defined in: [sys/ctr.ts:134](https://github.com/maiyunnet/kebab/blob/master/sys/
132448
132552
 
132449
132553
  > `protected` `readonly` **\_config**: [`IConfig`](../../../index/interfaces/IConfig.md)
132450
132554
 
132451
- Defined in: [sys/ctr.ts:146](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L146)
132555
+ Defined in: [sys/ctr.ts:171](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L171)
132452
132556
 
132453
132557
  vhost 的 kebab.json 以及全局常量
132454
132558
 
@@ -132458,7 +132562,7 @@ vhost 的 kebab.json 以及全局常量
132458
132562
 
132459
132563
  > `protected` **\_cookie**: `Record`\<`string`, `string`\> = `{}`
132460
132564
 
132461
- Defined in: [sys/ctr.ts:125](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L125)
132565
+ Defined in: [sys/ctr.ts:150](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L150)
132462
132566
 
132463
132567
  Cookie 数组
132464
132568
 
@@ -132468,7 +132572,7 @@ Cookie 数组
132468
132572
 
132469
132573
  > `protected` **\_files**: `Record`\<`string`, [`IPostFile`](../../../index/interfaces/IPostFile.md) \| [`IPostFile`](../../../index/interfaces/IPostFile.md)[]\> = `{}`
132470
132574
 
132471
- Defined in: [sys/ctr.ts:122](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L122)
132575
+ Defined in: [sys/ctr.ts:147](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L147)
132472
132576
 
132473
132577
  上传的文件列表
132474
132578
 
@@ -132478,7 +132582,7 @@ Defined in: [sys/ctr.ts:122](https://github.com/maiyunnet/kebab/blob/master/sys/
132478
132582
 
132479
132583
  > `protected` **\_get**: `Record`\<`string`, `string`\>
132480
132584
 
132481
- Defined in: [sys/ctr.ts:110](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L110)
132585
+ Defined in: [sys/ctr.ts:135](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L135)
132482
132586
 
132483
132587
  GET 数据
132484
132588
 
@@ -132488,7 +132592,7 @@ GET 数据
132488
132592
 
132489
132593
  > `protected` **\_headers**: `IncomingHttpHeaders` = `{}`
132490
132594
 
132491
- Defined in: [sys/ctr.ts:107](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L107)
132595
+ Defined in: [sys/ctr.ts:132](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L132)
132492
132596
 
132493
132597
  请求的 header 列表,key 均为小写
132494
132598
 
@@ -132498,7 +132602,7 @@ Defined in: [sys/ctr.ts:107](https://github.com/maiyunnet/kebab/blob/master/sys/
132498
132602
 
132499
132603
  > `protected` **\_httpCode**: `number` = `0`
132500
132604
 
132501
- Defined in: [sys/ctr.ts:140](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L140)
132605
+ Defined in: [sys/ctr.ts:165](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L165)
132502
132606
 
132503
132607
  自定义 http code
132504
132608
 
@@ -132508,7 +132612,7 @@ Defined in: [sys/ctr.ts:140](https://github.com/maiyunnet/kebab/blob/master/sys/
132508
132612
 
132509
132613
  > `protected` **\_input**: `string` = `''`
132510
132614
 
132511
- Defined in: [sys/ctr.ts:119](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L119)
132615
+ Defined in: [sys/ctr.ts:144](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L144)
132512
132616
 
132513
132617
  原始 input 字符串
132514
132618
 
@@ -132518,7 +132622,7 @@ Defined in: [sys/ctr.ts:119](https://github.com/maiyunnet/kebab/blob/master/sys/
132518
132622
 
132519
132623
  > `protected` **\_locale**: `string` = `'en'`
132520
132624
 
132521
- Defined in: [sys/ctr.ts:143](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L143)
132625
+ Defined in: [sys/ctr.ts:168](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L168)
132522
132626
 
132523
132627
  当前语言名
132524
132628
 
@@ -132528,7 +132632,7 @@ Defined in: [sys/ctr.ts:143](https://github.com/maiyunnet/kebab/blob/master/sys/
132528
132632
 
132529
132633
  > `protected` **\_localeData**: `Record`\<`string`, `Record`\<`string`, `string`\>\> = `{}`
132530
132634
 
132531
- Defined in: [sys/ctr.ts:158](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L158)
132635
+ Defined in: [sys/ctr.ts:183](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L183)
132532
132636
 
132533
132637
  本 ctr 的 locale data
132534
132638
 
@@ -132538,7 +132642,7 @@ Defined in: [sys/ctr.ts:158](https://github.com/maiyunnet/kebab/blob/master/sys/
132538
132642
 
132539
132643
  > `protected` **\_localeFiles**: `string`[] = `[]`
132540
132644
 
132541
- Defined in: [sys/ctr.ts:155](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L155)
132645
+ Defined in: [sys/ctr.ts:180](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L180)
132542
132646
 
132543
132647
  本 ctr 已加载的语言文件列表
132544
132648
 
@@ -132548,7 +132652,7 @@ Defined in: [sys/ctr.ts:155](https://github.com/maiyunnet/kebab/blob/master/sys/
132548
132652
 
132549
132653
  > `protected` **\_param**: `string`[] = `[]`
132550
132654
 
132551
- Defined in: [sys/ctr.ts:101](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L101)
132655
+ Defined in: [sys/ctr.ts:126](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L126)
132552
132656
 
132553
132657
  路由参数序列数组
132554
132658
 
@@ -132558,7 +132662,7 @@ Defined in: [sys/ctr.ts:101](https://github.com/maiyunnet/kebab/blob/master/sys/
132558
132662
 
132559
132663
  > `protected` **\_post**: `Record`\<`string`, [`Json`](../../../index/type-aliases/Json.md)\> = `{}`
132560
132664
 
132561
- Defined in: [sys/ctr.ts:116](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L116)
132665
+ Defined in: [sys/ctr.ts:141](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L141)
132562
132666
 
132563
132667
  POST 数据
132564
132668
 
@@ -132568,7 +132672,7 @@ POST 数据
132568
132672
 
132569
132673
  > `protected` **\_rawPost**: `Record`\<`string`, [`Json`](../../../index/type-aliases/Json.md)\> = `{}`
132570
132674
 
132571
- Defined in: [sys/ctr.ts:113](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L113)
132675
+ Defined in: [sys/ctr.ts:138](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L138)
132572
132676
 
132573
132677
  原始 POST 数据
132574
132678
 
@@ -132578,7 +132682,7 @@ Defined in: [sys/ctr.ts:113](https://github.com/maiyunnet/kebab/blob/master/sys/
132578
132682
 
132579
132683
  > `protected` `readonly` **\_req**: `IncomingMessage` \| `Http2ServerRequest`
132580
132684
 
132581
- Defined in: [sys/ctr.ts:148](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L148)
132685
+ Defined in: [sys/ctr.ts:173](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L173)
132582
132686
 
132583
132687
  ***
132584
132688
 
@@ -132586,7 +132690,7 @@ Defined in: [sys/ctr.ts:148](https://github.com/maiyunnet/kebab/blob/master/sys/
132586
132690
 
132587
132691
  > `protected` `readonly` **\_res**: `Http2ServerResponse`\<`Http2ServerRequest`\> \| `ServerResponse`\<`IncomingMessage`\>
132588
132692
 
132589
- Defined in: [sys/ctr.ts:150](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L150)
132693
+ Defined in: [sys/ctr.ts:175](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L175)
132590
132694
 
132591
132695
  ***
132592
132696
 
@@ -132594,7 +132698,7 @@ Defined in: [sys/ctr.ts:150](https://github.com/maiyunnet/kebab/blob/master/sys/
132594
132698
 
132595
132699
  > `protected` **\_sess**: [`Session`](../../../lib/session/classes/Session.md) \| `null` = `null`
132596
132700
 
132597
- Defined in: [sys/ctr.ts:131](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L131)
132701
+ Defined in: [sys/ctr.ts:156](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L156)
132598
132702
 
132599
132703
  Session --- 对象
132600
132704
 
@@ -132604,7 +132708,7 @@ Session --- 对象
132604
132708
 
132605
132709
  > `protected` **\_session**: `Record`\<`string`, `any`\> = `{}`
132606
132710
 
132607
- Defined in: [sys/ctr.ts:128](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L128)
132711
+ Defined in: [sys/ctr.ts:153](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L153)
132608
132712
 
132609
132713
  Session 数组
132610
132714
 
@@ -132614,7 +132718,7 @@ Session 数组
132614
132718
 
132615
132719
  > `protected` `readonly` **\_socket**: [`Socket`](../../../lib/ws/classes/Socket.md)
132616
132720
 
132617
- Defined in: [sys/ctr.ts:152](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L152)
132721
+ Defined in: [sys/ctr.ts:177](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L177)
132618
132722
 
132619
132723
  ***
132620
132724
 
@@ -132622,7 +132726,7 @@ Defined in: [sys/ctr.ts:152](https://github.com/maiyunnet/kebab/blob/master/sys/
132622
132726
 
132623
132727
  > `protected` `optional` **\_timer?**: `object`
132624
132728
 
132625
- Defined in: [sys/ctr.ts:179](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L179)
132729
+ Defined in: [sys/ctr.ts:210](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L210)
132626
132730
 
132627
132731
  timeout 的 timer
132628
132732
 
@@ -132648,7 +132752,7 @@ timeout 的 timer
132648
132752
 
132649
132753
  > `protected` **\_xsrf**: `string` = `''`
132650
132754
 
132651
- Defined in: [sys/ctr.ts:137](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L137)
132755
+ Defined in: [sys/ctr.ts:162](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L162)
132652
132756
 
132653
132757
  XSRF TOKEN 值
132654
132758
 
@@ -132660,7 +132764,7 @@ XSRF TOKEN 值
132660
132764
 
132661
132765
  > **get** `protected` **\_isAvail**(): `boolean`
132662
132766
 
132663
- Defined in: [sys/ctr.ts:174](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L174)
132767
+ Defined in: [sys/ctr.ts:199](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L199)
132664
132768
 
132665
132769
  当前用户连接是否还在连接中
132666
132770
 
@@ -132676,7 +132780,7 @@ Defined in: [sys/ctr.ts:174](https://github.com/maiyunnet/kebab/blob/master/sys/
132676
132780
 
132677
132781
  > **get** **timeout**(): `number`
132678
132782
 
132679
- Defined in: [sys/ctr.ts:186](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L186)
132783
+ Defined in: [sys/ctr.ts:217](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L217)
132680
132784
 
132681
132785
  获取当前过期时间(毫秒)
132682
132786
 
@@ -132688,7 +132792,7 @@ Defined in: [sys/ctr.ts:186](https://github.com/maiyunnet/kebab/blob/master/sys/
132688
132792
 
132689
132793
  > **set** **timeout**(`num`): `void`
132690
132794
 
132691
- Defined in: [sys/ctr.ts:193](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L193)
132795
+ Defined in: [sys/ctr.ts:224](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L224)
132692
132796
 
132693
132797
  设置当前过期时间(毫秒)
132694
132798
 
@@ -132708,7 +132812,7 @@ Defined in: [sys/ctr.ts:193](https://github.com/maiyunnet/kebab/blob/master/sys/
132708
132812
 
132709
132813
  > `protected` **\_asyncTask**(`func`): `void`
132710
132814
 
132711
- Defined in: [sys/ctr.ts:227](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L227)
132815
+ Defined in: [sys/ctr.ts:258](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L258)
132712
132816
 
132713
132817
  执行一段跳出堆栈的异步代码,代码执行完成前,热更新不会杀死当面进程 且 ftmp 临时文件不会被清除
132714
132818
 
@@ -132730,7 +132834,7 @@ Defined in: [sys/ctr.ts:227](https://github.com/maiyunnet/kebab/blob/master/sys/
132730
132834
 
132731
132835
  > `protected` **\_checkInput**(`input`, `rule`, `rtn`): `boolean`
132732
132836
 
132733
- Defined in: [sys/ctr.ts:768](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L768)
132837
+ Defined in: [sys/ctr.ts:799](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L799)
132734
132838
 
132735
132839
  检测提交的数据类型
132736
132840
 
@@ -132764,7 +132868,7 @@ Defined in: [sys/ctr.ts:768](https://github.com/maiyunnet/kebab/blob/master/sys/
132764
132868
 
132765
132869
  > `protected` **\_checkXInput**(`input`, `rule`, `rtn`, `ignore?`): `boolean`
132766
132870
 
132767
- Defined in: [sys/ctr.ts:947](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L947)
132871
+ Defined in: [sys/ctr.ts:978](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L978)
132768
132872
 
132769
132873
  检测提交的数据类型(会检测 XSRF)
132770
132874
 
@@ -132804,7 +132908,7 @@ Defined in: [sys/ctr.ts:947](https://github.com/maiyunnet/kebab/blob/master/sys/
132804
132908
 
132805
132909
  > `protected` **\_cross**(`opt?`): `boolean`
132806
132910
 
132807
- Defined in: [sys/ctr.ts:1182](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1182)
132911
+ Defined in: [sys/ctr.ts:1213](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1213)
132808
132912
 
132809
132913
  开启跨域请求
132810
132914
 
@@ -132849,7 +132953,7 @@ Defined in: [sys/ctr.ts:1182](https://github.com/maiyunnet/kebab/blob/master/sys
132849
132953
 
132850
132954
  > `protected` **\_device**(): `"unknown"` \| `"android"` \| `"linux"` \| `"windows"` \| `"macintosh"` \| `"ipad"`
132851
132955
 
132852
- Defined in: [sys/ctr.ts:992](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L992)
132956
+ Defined in: [sys/ctr.ts:1023](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1023)
132853
132957
 
132854
132958
  根据用户 ua 获取当前用户的设备类型
132855
132959
 
@@ -132863,7 +132967,7 @@ Defined in: [sys/ctr.ts:992](https://github.com/maiyunnet/kebab/blob/master/sys/
132863
132967
 
132864
132968
  > `protected` **\_enabledXsrf**(`opt?`): `void`
132865
132969
 
132866
- Defined in: [sys/ctr.ts:961](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L961)
132970
+ Defined in: [sys/ctr.ts:992](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L992)
132867
132971
 
132868
132972
  当前页面开启 XSRF 支持(主要检测 cookie 是否存在)
132869
132973
  如果当前页面有 CDN,请不要使用
@@ -132886,7 +132990,7 @@ Defined in: [sys/ctr.ts:961](https://github.com/maiyunnet/kebab/blob/master/sys/
132886
132990
 
132887
132991
  > `protected` **\_end**(`code?`, `reason?`): `void`
132888
132992
 
132889
- Defined in: [sys/ctr.ts:1292](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1292)
132993
+ Defined in: [sys/ctr.ts:1323](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1323)
132890
132994
 
132891
132995
  主动关闭当前 socket 连接
132892
132996
 
@@ -132914,7 +133018,7 @@ WebSocket 关闭码
132914
133018
 
132915
133019
  > `protected` **\_getBasicAuth**(`user`, `pwd`): `string`
132916
133020
 
132917
- Defined in: [sys/ctr.ts:985](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L985)
133021
+ Defined in: [sys/ctr.ts:1016](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1016)
132918
133022
 
132919
133023
  获取 Auth 字符串,用于客户端提交
132920
133024
 
@@ -132942,7 +133046,7 @@ Defined in: [sys/ctr.ts:985](https://github.com/maiyunnet/kebab/blob/master/sys/
132942
133046
 
132943
133047
  > `protected` **\_getLocale**(): `string`
132944
133048
 
132945
- Defined in: [sys/ctr.ts:1173](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1173)
133049
+ Defined in: [sys/ctr.ts:1204](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1204)
132946
133050
 
132947
133051
  获取当前语言名
132948
133052
 
@@ -132956,7 +133060,7 @@ Defined in: [sys/ctr.ts:1173](https://github.com/maiyunnet/kebab/blob/master/sys
132956
133060
 
132957
133061
  > `protected` **\_getLocaleJsonString**(): `string`
132958
133062
 
132959
- Defined in: [sys/ctr.ts:1161](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1161)
133063
+ Defined in: [sys/ctr.ts:1192](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1192)
132960
133064
 
132961
133065
  根据当前后台语言包设置情况获取 JSON 字符串传输到前台
132962
133066
 
@@ -132972,7 +133076,7 @@ string
132972
133076
 
132973
133077
  > `protected` **\_getMemoryUsage**(): `number`
132974
133078
 
132975
- Defined in: [sys/ctr.ts:377](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L377)
133079
+ Defined in: [sys/ctr.ts:408](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L408)
132976
133080
 
132977
133081
  获取截止当前内存的使用情况
132978
133082
 
@@ -132986,7 +133090,7 @@ Defined in: [sys/ctr.ts:377](https://github.com/maiyunnet/kebab/blob/master/sys/
132986
133090
 
132987
133091
  > `protected` **\_getRunTime**(`ms?`): `number`
132988
133092
 
132989
- Defined in: [sys/ctr.ts:369](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L369)
133093
+ Defined in: [sys/ctr.ts:400](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L400)
132990
133094
 
132991
133095
  获取截止当前时间的总运行时间
132992
133096
 
@@ -133008,7 +133112,7 @@ Defined in: [sys/ctr.ts:369](https://github.com/maiyunnet/kebab/blob/master/sys/
133008
133112
 
133009
133113
  > `protected` **\_handleFormData**(`events?`, `limits?`): `Promise`\<`boolean`\>
133010
133114
 
133011
- Defined in: [sys/ctr.ts:1301](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1301)
133115
+ Defined in: [sys/ctr.ts:1332](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1332)
133012
133116
 
133013
133117
  获取 formdata 的信息
133014
133118
 
@@ -133086,7 +133190,7 @@ multipart 字段与文件总数量,默认 1000
133086
133190
 
133087
133191
  > **\_l**(`key`, `data?`): `string`
133088
133192
 
133089
- Defined in: [sys/ctr.ts:1225](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1225)
133193
+ Defined in: [sys/ctr.ts:1256](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1256)
133090
133194
 
133091
133195
  获取语言包值
133092
133196
 
@@ -133112,7 +133216,7 @@ Defined in: [sys/ctr.ts:1225](https://github.com/maiyunnet/kebab/blob/master/sys
133112
133216
 
133113
133217
  > `protected` **\_loadData**\<`T`\>(`path`): `Promise`\<`false` \| `T` \| `null`\>
133114
133218
 
133115
- Defined in: [sys/ctr.ts:1061](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1061)
133219
+ Defined in: [sys/ctr.ts:1092](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1092)
133116
133220
 
133117
133221
  获取 data JSON 数据
133118
133222
 
@@ -133140,7 +133244,7 @@ Defined in: [sys/ctr.ts:1061](https://github.com/maiyunnet/kebab/blob/master/sys
133140
133244
 
133141
133245
  > `protected` **\_loadLocale**(`loc`, `pkg?`): `Promise`\<`boolean`\>
133142
133246
 
133143
- Defined in: [sys/ctr.ts:1112](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1112)
133247
+ Defined in: [sys/ctr.ts:1143](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1143)
133144
133248
 
133145
133249
  设定语言并加载语言包
133146
133250
 
@@ -133168,7 +133272,7 @@ Defined in: [sys/ctr.ts:1112](https://github.com/maiyunnet/kebab/blob/master/sys
133168
133272
 
133169
133273
  > `protected` **\_loadReactPage**(`path`, `props?`, `opt?`): `Promise`\<`string`\>
133170
133274
 
133171
- Defined in: [sys/ctr.ts:413](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L413)
133275
+ Defined in: [sys/ctr.ts:444](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L444)
133172
133276
 
133173
133277
  加载 React 全页面进行 SSR 渲染,组件需渲染完整 HTML 文档(含 html/head/body),无需 EJS
133174
133278
  框架自动注入 props:_urlBase/_urlFull/_urlStc/_staticVer/_staticPath/_staticPathFull
@@ -133237,7 +133341,7 @@ BrowserRouter 的 basename,相对于 urlBase,默认空字符串
133237
133341
 
133238
133342
  > `protected` **\_loadView**(`path`, `data?`): `Promise`\<`string`\>
133239
133343
 
133240
- Defined in: [sys/ctr.ts:386](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L386)
133344
+ Defined in: [sys/ctr.ts:417](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L417)
133241
133345
 
133242
133346
  加载视图
133243
133347
 
@@ -133261,7 +133365,7 @@ Defined in: [sys/ctr.ts:386](https://github.com/maiyunnet/kebab/blob/master/sys/
133261
133365
 
133262
133366
  > `protected` **\_location**(`location`): `false`
133263
133367
 
133264
- Defined in: [sys/ctr.ts:1082](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1082)
133368
+ Defined in: [sys/ctr.ts:1113](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1113)
133265
133369
 
133266
133370
  跳转(302临时跳转),支持相对本项目根路径的路径或绝对路径
133267
133371
 
@@ -133283,7 +133387,7 @@ Defined in: [sys/ctr.ts:1082](https://github.com/maiyunnet/kebab/blob/master/sys
133283
133387
 
133284
133388
  > `protected` **\_ping**(`data?`): `boolean`
133285
133389
 
133286
- Defined in: [sys/ctr.ts:1275](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1275)
133390
+ Defined in: [sys/ctr.ts:1306](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1306)
133287
133391
 
133288
133392
  发送 socket ping
133289
133393
 
@@ -133305,7 +133409,7 @@ Defined in: [sys/ctr.ts:1275](https://github.com/maiyunnet/kebab/blob/master/sys
133305
133409
 
133306
133410
  > `protected` **\_pong**(`data?`): `boolean`
133307
133411
 
133308
- Defined in: [sys/ctr.ts:1283](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1283)
133412
+ Defined in: [sys/ctr.ts:1314](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1314)
133309
133413
 
133310
133414
  发送 socket pong
133311
133415
 
@@ -133327,7 +133431,7 @@ Defined in: [sys/ctr.ts:1283](https://github.com/maiyunnet/kebab/blob/master/sys
133327
133431
 
133328
133432
  > `protected` **\_startSession**(`link`, `auth?`, `opt?`): `Promise`\<`boolean`\>
133329
133433
 
133330
- Defined in: [sys/ctr.ts:1096](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1096)
133434
+ Defined in: [sys/ctr.ts:1127](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1127)
133331
133435
 
133332
133436
  开启 Session
133333
133437
 
@@ -133361,7 +133465,7 @@ Kv 或 Db 实例
133361
133465
 
133362
133466
  > `protected` **\_valibot**\<`TSchema`\>(`schema`, `input`, `options?`): [`TValibotResult`](../type-aliases/TValibotResult.md)\<`TSchema`\>
133363
133467
 
133364
- Defined in: [sys/ctr.ts:687](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L687)
133468
+ Defined in: [sys/ctr.ts:718](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L718)
133365
133469
 
133366
133470
  使用 Valibot schema 校验并解析输入,成功后 output 会自动推导类型
133367
133471
 
@@ -133403,7 +133507,7 @@ Valibot 配置和自定义客户端返回值
133403
133507
 
133404
133508
  > `protected` **\_valibotx**\<`TSchema`\>(`schema`, `input`, `options?`): [`TValibotResult`](../type-aliases/TValibotResult.md)\<`TSchema`, [`IValibotXsrfIssue`](../interfaces/IValibotXsrfIssue.md) \| [`InferIssue`](../../../lib/core/namespaces/v/type-aliases/InferIssue.md)\<`TSchema`\>\>
133405
133509
 
133406
- Defined in: [sys/ctr.ts:711](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L711)
133510
+ Defined in: [sys/ctr.ts:742](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L742)
133407
133511
 
133408
133512
  使用 Valibot schema 校验并解析输入,同时检测 XSRF
133409
133513
 
@@ -133445,7 +133549,7 @@ Valibot 配置、自定义客户端返回值和 XSRF 选项
133445
133549
 
133446
133550
  > `protected` **\_writeBinary**(`data`): `boolean`
133447
133551
 
133448
- Defined in: [sys/ctr.ts:1267](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1267)
133552
+ Defined in: [sys/ctr.ts:1298](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1298)
133449
133553
 
133450
133554
  发送 socket 二进制
133451
133555
 
@@ -133467,7 +133571,7 @@ Defined in: [sys/ctr.ts:1267](https://github.com/maiyunnet/kebab/blob/master/sys
133467
133571
 
133468
133572
  > `protected` **\_writeResult**(`data`): `boolean`
133469
133573
 
133470
- Defined in: [sys/ctr.ts:1259](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1259)
133574
+ Defined in: [sys/ctr.ts:1290](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1290)
133471
133575
 
133472
133576
  发送结果对象文本
133473
133577
 
@@ -133489,7 +133593,7 @@ Defined in: [sys/ctr.ts:1259](https://github.com/maiyunnet/kebab/blob/master/sys
133489
133593
 
133490
133594
  > `protected` **\_writeText**(`data`): `boolean`
133491
133595
 
133492
- Defined in: [sys/ctr.ts:1251](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1251)
133596
+ Defined in: [sys/ctr.ts:1282](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1282)
133493
133597
 
133494
133598
  发送 socket 文本
133495
133599
 
@@ -133511,7 +133615,7 @@ Defined in: [sys/ctr.ts:1251](https://github.com/maiyunnet/kebab/blob/master/sys
133511
133615
 
133512
133616
  > **getAuthorization**(): `false` \| \{ `pwd`: `string`; `type`: `"basic"`; `user`: `string`; \} \| \{ `token`: `string`; `type`: `"bearer"`; \}
133513
133617
 
133514
- Defined in: [sys/ctr.ts:1013](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1013)
133618
+ Defined in: [sys/ctr.ts:1044](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1044)
133515
133619
 
133516
133620
  通过 header 或 _auth 获取鉴权信息,支持 Basic Auth 和 Bearer Token
133517
133621
 
@@ -133527,7 +133631,7 @@ Defined in: [sys/ctr.ts:1013](https://github.com/maiyunnet/kebab/blob/master/sys
133527
133631
 
133528
133632
  > **getPrototype**(`name`): [`IConfig`](../../../index/interfaces/IConfig.md)
133529
133633
 
133530
- Defined in: [sys/ctr.ts:251](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L251)
133634
+ Defined in: [sys/ctr.ts:282](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L282)
133531
133635
 
133532
133636
  获取类内部的 prototype
133533
133637
 
@@ -133545,7 +133649,7 @@ Defined in: [sys/ctr.ts:251](https://github.com/maiyunnet/kebab/blob/master/sys/
133545
133649
 
133546
133650
  > **getPrototype**(`name`): [`Session`](../../../lib/session/classes/Session.md) \| `null`
133547
133651
 
133548
- Defined in: [sys/ctr.ts:252](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L252)
133652
+ Defined in: [sys/ctr.ts:283](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L283)
133549
133653
 
133550
133654
  获取类内部的 prototype
133551
133655
 
@@ -133563,7 +133667,7 @@ Defined in: [sys/ctr.ts:252](https://github.com/maiyunnet/kebab/blob/master/sys/
133563
133667
 
133564
133668
  > **getPrototype**(`name`): `IncomingHttpHeaders`
133565
133669
 
133566
- Defined in: [sys/ctr.ts:253](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L253)
133670
+ Defined in: [sys/ctr.ts:284](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L284)
133567
133671
 
133568
133672
  获取类内部的 prototype
133569
133673
 
@@ -133581,7 +133685,7 @@ Defined in: [sys/ctr.ts:253](https://github.com/maiyunnet/kebab/blob/master/sys/
133581
133685
 
133582
133686
  > **getPrototype**(`name`): `IncomingMessage` \| `Http2ServerRequest`
133583
133687
 
133584
- Defined in: [sys/ctr.ts:254](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L254)
133688
+ Defined in: [sys/ctr.ts:285](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L285)
133585
133689
 
133586
133690
  获取类内部的 prototype
133587
133691
 
@@ -133599,7 +133703,7 @@ Defined in: [sys/ctr.ts:254](https://github.com/maiyunnet/kebab/blob/master/sys/
133599
133703
 
133600
133704
  > **getPrototype**(`name`): `Http2ServerResponse`\<`Http2ServerRequest`\> \| `ServerResponse`\<`IncomingMessage`\>
133601
133705
 
133602
- Defined in: [sys/ctr.ts:255](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L255)
133706
+ Defined in: [sys/ctr.ts:286](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L286)
133603
133707
 
133604
133708
  获取类内部的 prototype
133605
133709
 
@@ -133617,7 +133721,7 @@ Defined in: [sys/ctr.ts:255](https://github.com/maiyunnet/kebab/blob/master/sys/
133617
133721
 
133618
133722
  > **getPrototype**(`name`): [`Socket`](../../../lib/ws/classes/Socket.md)
133619
133723
 
133620
- Defined in: [sys/ctr.ts:256](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L256)
133724
+ Defined in: [sys/ctr.ts:287](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L287)
133621
133725
 
133622
133726
  获取类内部的 prototype
133623
133727
 
@@ -133635,7 +133739,7 @@ Defined in: [sys/ctr.ts:256](https://github.com/maiyunnet/kebab/blob/master/sys/
133635
133739
 
133636
133740
  > **getPrototype**(`name`): `Record`\<`string`, [`Json`](../../../index/type-aliases/Json.md)\>
133637
133741
 
133638
- Defined in: [sys/ctr.ts:257](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L257)
133742
+ Defined in: [sys/ctr.ts:288](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L288)
133639
133743
 
133640
133744
  获取类内部的 prototype
133641
133745
 
@@ -133653,7 +133757,7 @@ Defined in: [sys/ctr.ts:257](https://github.com/maiyunnet/kebab/blob/master/sys/
133653
133757
 
133654
133758
  > **getPrototype**(`name`): `string`
133655
133759
 
133656
- Defined in: [sys/ctr.ts:258](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L258)
133760
+ Defined in: [sys/ctr.ts:289](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L289)
133657
133761
 
133658
133762
  获取类内部的 prototype
133659
133763
 
@@ -133671,7 +133775,7 @@ Defined in: [sys/ctr.ts:258](https://github.com/maiyunnet/kebab/blob/master/sys/
133671
133775
 
133672
133776
  > **getPrototype**(`name`): `any`
133673
133777
 
133674
- Defined in: [sys/ctr.ts:259](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L259)
133778
+ Defined in: [sys/ctr.ts:290](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L290)
133675
133779
 
133676
133780
  获取类内部的 prototype
133677
133781
 
@@ -133691,7 +133795,7 @@ Defined in: [sys/ctr.ts:259](https://github.com/maiyunnet/kebab/blob/master/sys/
133691
133795
 
133692
133796
  > **onClose**(): `void` \| `Promise`\<`void`\>
133693
133797
 
133694
- Defined in: [sys/ctr.ts:353](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L353)
133798
+ Defined in: [sys/ctr.ts:384](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L384)
133695
133799
 
133696
133800
  WebSocket 下连接被终止后会自动被调用的事件,可重写此方法
133697
133801
 
@@ -133705,7 +133809,7 @@ WebSocket 下连接被终止后会自动被调用的事件,可重写此方法
133705
133809
 
133706
133810
  > **onData**(`data`, `opcode`): `any`
133707
133811
 
133708
- Defined in: [sys/ctr.ts:318](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L318)
133812
+ Defined in: [sys/ctr.ts:349](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L349)
133709
133813
 
133710
133814
  WebSocket 下当收到数据时会自动被调用的事件,即只文本和二进制数据,返回内容会被发送给 socket
133711
133815
 
@@ -133735,7 +133839,7 @@ WebSocket 下当收到数据时会自动被调用的事件,即只文本和二
133735
133839
 
133736
133840
  > **onDrain**(): `void` \| `Promise`\<`void`\>
133737
133841
 
133738
- Defined in: [sys/ctr.ts:339](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L339)
133842
+ Defined in: [sys/ctr.ts:370](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L370)
133739
133843
 
133740
133844
  WebSocket 下连接恢复可写入状态后会调用此事件,可重写此方法
133741
133845
 
@@ -133749,7 +133853,7 @@ WebSocket 下连接恢复可写入状态后会调用此事件,可重写此方
133749
133853
 
133750
133854
  > **onEnd**(): `void` \| `Promise`\<`void`\>
133751
133855
 
133752
- Defined in: [sys/ctr.ts:346](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L346)
133856
+ Defined in: [sys/ctr.ts:377](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L377)
133753
133857
 
133754
133858
  WebSocket 下连接被 end 后会自动被调用的事件,可重写此方法
133755
133859
 
@@ -133763,7 +133867,7 @@ WebSocket 下连接被 end 后会自动被调用的事件,可重写此方法
133763
133867
 
133764
133868
  > **onLoad**(): `string` \| `boolean` \| [`DbValue`](../../../index/type-aliases/DbValue.md)[] \| `Promise`\<`string` \| `boolean` \| [`DbValue`](../../../index/type-aliases/DbValue.md)[]\>
133765
133869
 
133766
- Defined in: [sys/ctr.ts:277](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L277)
133870
+ Defined in: [sys/ctr.ts:308](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L308)
133767
133871
 
133768
133872
  实例化后会执行的方法,可重写此方法
133769
133873
 
@@ -133779,7 +133883,7 @@ Defined in: [sys/ctr.ts:277](https://github.com/maiyunnet/kebab/blob/master/sys/
133779
133883
 
133780
133884
  > **onMessage**(`data`, `opcode`): `boolean` \| `Promise`\<`boolean` \| `undefined`\> \| `undefined`
133781
133885
 
133782
- Defined in: [sys/ctr.ts:330](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L330)
133886
+ Defined in: [sys/ctr.ts:361](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L361)
133783
133887
 
133784
133888
  包含所有 opcode 的消息,若要发送数据需自行调用 write 方法,data 恒定为原始 buffer
133785
133889
  返回 false 则不会执行默认方法,一般请什么都不要返回
@@ -133809,7 +133913,7 @@ opcode
133809
133913
 
133810
133914
  > **onReady**(): `string` \| `boolean` \| [`DbValue`](../../../index/type-aliases/DbValue.md)[] \| `Promise`\<`string` \| `boolean` \| [`DbValue`](../../../index/type-aliases/DbValue.md)[]\>
133811
133915
 
133812
- Defined in: [sys/ctr.ts:286](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L286)
133916
+ Defined in: [sys/ctr.ts:317](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L317)
133813
133917
 
133814
133918
  onLoad 执行后会执行的方法,可重写此方法
133815
133919
 
@@ -133825,7 +133929,7 @@ onLoad 执行后会执行的方法,可重写此方法
133825
133929
 
133826
133930
  > **onReqStart**(): `number` \| `Promise`\<`number`\>
133827
133931
 
133828
- Defined in: [sys/ctr.ts:361](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L361)
133932
+ Defined in: [sys/ctr.ts:392](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L392)
133829
133933
 
133830
133934
  请求发送开始时调用(仅会在 middle 内触发)
133831
133935
 
@@ -133841,7 +133945,7 @@ Defined in: [sys/ctr.ts:361](https://github.com/maiyunnet/kebab/blob/master/sys/
133841
133945
 
133842
133946
  > **onUnload**(`rtn`): `string` \| `boolean` \| [`DbValue`](../../../index/type-aliases/DbValue.md)[] \| `Promise`\<`string` \| `boolean` \| [`DbValue`](../../../index/type-aliases/DbValue.md)[]\>
133843
133947
 
133844
- Defined in: [sys/ctr.ts:296](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L296)
133948
+ Defined in: [sys/ctr.ts:327](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L327)
133845
133949
 
133846
133950
  整个结束前会执行本方法,可重写此方法对输出结果再处理一次(Websocket 模式无效)
133847
133951
 
@@ -133865,7 +133969,7 @@ Defined in: [sys/ctr.ts:296](https://github.com/maiyunnet/kebab/blob/master/sys/
133865
133969
 
133866
133970
  > **onUpgrade**(): `object`
133867
133971
 
133868
- Defined in: [sys/ctr.ts:305](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L305)
133972
+ Defined in: [sys/ctr.ts:336](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L336)
133869
133973
 
133870
133974
  WebSocket 下在建立 Server 连接之前可对 WebSocket 的信息进行配置
133871
133975
 
@@ -133889,7 +133993,7 @@ WebSocket 配置参数,包含自定义 header 和超时时间
133889
133993
 
133890
133994
  > **setPrototype**(`name`, `val`): `void`
133891
133995
 
133892
- Defined in: [sys/ctr.ts:265](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L265)
133996
+ Defined in: [sys/ctr.ts:296](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L296)
133893
133997
 
133894
133998
  设置类内部的 prototype
133895
133999
 
@@ -133928,6 +134032,43 @@ Defined in: [sys/ctr.ts:39](https://github.com/maiyunnet/kebab/blob/master/sys/c
133928
134032
 
133929
134033
  `void`
133930
134034
 
134035
+ sys/ctr/functions/isHttpRequestAvailable.md
134036
+ ---
134037
+
134038
+ [**Documents for @maiyunnet/kebab**](../../../index.md)
134039
+
134040
+ ***
134041
+
134042
+ [Documents for @maiyunnet/kebab](../../../index.md) / [sys/ctr](../index.md) / isHttpRequestAvailable
134043
+
134044
+ # Function: isHttpRequestAvailable()
134045
+
134046
+ > **isHttpRequestAvailable**(`req`, `res`): `boolean`
134047
+
134048
+ Defined in: [sys/ctr.ts:104](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L104)
134049
+
134050
+ 判断当前 HTTP 请求是否仍可响应
134051
+
134052
+ ## Parameters
134053
+
134054
+ ### req
134055
+
134056
+ `IncomingMessage` \| `Http2ServerRequest`
134057
+
134058
+ 请求对象
134059
+
134060
+ ### res
134061
+
134062
+ `Http2ServerResponse`\<`Http2ServerRequest`\> \| `ServerResponse`\<`IncomingMessage`\>
134063
+
134064
+ 响应对象
134065
+
134066
+ ## Returns
134067
+
134068
+ `boolean`
134069
+
134070
+ 客户端对应的请求流仍可响应时返回 true
134071
+
133931
134072
  sys/ctr/index.md
133932
134073
  ---
133933
134074
 
@@ -133958,6 +134099,7 @@ sys/ctr/index.md
133958
134099
  ## Functions
133959
134100
 
133960
134101
  - [clearLocaleData](functions/clearLocaleData.md)
134102
+ - [isHttpRequestAvailable](functions/isHttpRequestAvailable.md)
133961
134103
 
133962
134104
  sys/ctr/interfaces/IValibotOptions.md
133963
134105
  ---
@@ -137054,7 +137196,7 @@ sys/route/functions/getFormData.md
137054
137196
 
137055
137197
  > **getFormData**(`req`, `events?`, `limits?`): `Promise`\<`false` \| \{ `files`: `Record`\<`string`, [`IPostFile`](../../../index/interfaces/IPostFile.md) \| [`IPostFile`](../../../index/interfaces/IPostFile.md)[]\>; `post`: `Record`\<`string`, [`Json`](../../../index/type-aliases/Json.md)\>; \}\>
137056
137198
 
137057
- Defined in: [sys/route.ts:994](https://github.com/maiyunnet/kebab/blob/master/sys/route.ts#L994)
137199
+ Defined in: [sys/route.ts:1037](https://github.com/maiyunnet/kebab/blob/master/sys/route.ts#L1037)
137058
137200
 
137059
137201
  获取 formdata 的 post
137060
137202
 
@@ -137149,9 +137291,9 @@ sys/route/functions/getPost.md
137149
137291
 
137150
137292
  # Function: getPost()
137151
137293
 
137152
- > **getPost**(`req`): `Promise`\<\{ `input`: `string`; `post`: `Record`\<`string`, `any`\>; `raw`: `Record`\<`string`, `any`\>; \}\>
137294
+ > **getPost**(`req`): `Promise`\<`false` \| \{ `input`: `string`; `post`: `Record`\<`string`, `any`\>; `raw`: `Record`\<`string`, `any`\>; \}\>
137153
137295
 
137154
- Defined in: [sys/route.ts:908](https://github.com/maiyunnet/kebab/blob/master/sys/route.ts#L908)
137296
+ Defined in: [sys/route.ts:912](https://github.com/maiyunnet/kebab/blob/master/sys/route.ts#L912)
137155
137297
 
137156
137298
  获取 post 对象(通常已自动获取),如果是文件上传(formdata)的情况则不获取
137157
137299
 
@@ -137165,7 +137307,9 @@ Defined in: [sys/route.ts:908](https://github.com/maiyunnet/kebab/blob/master/sy
137165
137307
 
137166
137308
  ## Returns
137167
137309
 
137168
- `Promise`\<\{ `input`: `string`; `post`: `Record`\<`string`, `any`\>; `raw`: `Record`\<`string`, `any`\>; \}\>
137310
+ `Promise`\<`false` \| \{ `input`: `string`; `post`: `Record`\<`string`, `any`\>; `raw`: `Record`\<`string`, `any`\>; \}\>
137311
+
137312
+ 解析后的 POST 数据,请求传输中断时返回 false
137169
137313
 
137170
137314
  sys/route/functions/run.md
137171
137315
  ---
@@ -137267,7 +137411,7 @@ sys/route/functions/unlinkUploadFiles.md
137267
137411
 
137268
137412
  > **unlinkUploadFiles**(`cctr`): `Promise`\<`void`\>
137269
137413
 
137270
- Defined in: [sys/route.ts:867](https://github.com/maiyunnet/kebab/blob/master/sys/route.ts#L867)
137414
+ Defined in: [sys/route.ts:870](https://github.com/maiyunnet/kebab/blob/master/sys/route.ts#L870)
137271
137415
 
137272
137416
  删除本次请求所有已上传的临时文件
137273
137417
 
@@ -137296,7 +137440,7 @@ sys/route/functions/waitCtr.md
137296
137440
 
137297
137441
  > **waitCtr**(`cctr`): `Promise`\<`void`\>
137298
137442
 
137299
- Defined in: [sys/route.ts:887](https://github.com/maiyunnet/kebab/blob/master/sys/route.ts#L887)
137443
+ Defined in: [sys/route.ts:890](https://github.com/maiyunnet/kebab/blob/master/sys/route.ts#L890)
137300
137444
 
137301
137445
  等待异步任务结束,并删除临时文件,如果结束后还有事务没关闭,则会在本函数中打印控制台并且写入 log 文件
137302
137446
  此时其实已经给客户端返回了,此处等待不消耗客户端的等待时间