文件操作 - azure-functions.mjs
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/nitropack/dist/presets/azure/runtime/azure-functions.mjs
编辑文件内容
import "#nitro-internal-pollyfills"; import { useNitroApp } from "nitropack/runtime"; import { getAzureParsedCookiesFromHeaders, normalizeLambdaOutgoingHeaders } from "nitropack/runtime/internal"; const nitroApp = useNitroApp(); export async function handle(context, req) { const url = "/" + (req.params.url || ""); const { body, status, statusText, headers } = await nitroApp.localCall({ url, headers: req.headers, method: req.method || void 0, // https://github.com/Azure/azure-functions-host/issues/293 body: req.rawBody }); context.res = { status, // cookies https://learn.microsoft.com/en-us/azure/azure-functions/functions-reference-node?tabs=typescript%2Cwindows%2Cazure-cli&pivots=nodejs-model-v4#http-response cookies: getAzureParsedCookiesFromHeaders(headers), headers: normalizeLambdaOutgoingHeaders(headers, true), body: body ? body.toString() : statusText }; }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件