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

    接口 DownloadFileData

    下载文件

    interface DownloadFileData {
        filePath?: string;
        header?: Record<string, string>;
        timeout?: number;
        url: string;
    }
    索引

    属性

    filePath?: string

    指定文件下载后存储的路径 (本地路径)

    header?: Record<string, string>

    HTTP 请求 Header,header 中不能设置 Referer

    timeout?: number

    超时时间,单位 ms

    url: string

    下载资源的 url