文件操作 - call.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/unenv/runtime/fetch/call.d.ts
编辑文件内容
import { IncomingMessage } from "../node/http/_request"; import { ServerResponse } from "../node/http/_response"; export type Handle = (req: IncomingMessage, res: ServerResponse) => Promise<any>; export type CallHandle = ReturnType<typeof createCall>; export interface CallContext { [key: string]: any; url?: string; method?: string; headers?: Headers | { [key: string]: string | string[]; }; protocol?: string; body?: any; } export declare function createCall(handle: Handle): (context: CallContext) => Promise<{ body: BodyInit | null; headers: Record<string, string | number | string[] | undefined>; status: number; statusText: string; }>;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件