feat: 若设置 $options._res.headers, 拉取文件时将设置自定义响应头

This commit is contained in:
xream
2025-05-28 13:46:57 +08:00
parent 1874c20c6d
commit 88283211cb
4 changed files with 22 additions and 5 deletions

View File

@@ -59,6 +59,15 @@ function operator(proxies = [], targetPlatform, context) {
// }
// console.log($options)
// 若设置 $options._res.headers
// 则会在输出文件时设置响应头, 例如:
// $options._res = {
// headers: {
// 'X-Custom': '1'
// }
// }
// targetPlatform 为输出的目标平台
// lodash