core
    正在准备搜索索引...

    接口 DownloadFileResult

    interface DownloadFileResult {
        cookies: string[];
        filePath: string;
        header: Record<string, string | string[]>;
        statusCode: number;
        tempFilePath: string;
        tempFileUri: string;
    }

    层级 (查看层级一览)

    索引
    cookies: string[]

    服务器返回的 cookies,格式为字符串数组

    filePath: string

    fs:// 路径格式的用户文件路径,与入参 filePath 一致

    header: Record<string, string | string[]>

    服务器返回的 HTTP Response Header

    statusCode: number

    服务器返回的 HTTP 状态码

    tempFilePath: string

    fs:// 路径格式的临时文件路径

    tempFileUri: string

    fs:// 路径临时文件的 URI,形如 file://...