PowerKeys Scripting API
    Preparing search index...

    Interface HttpDownloadFileOptions

    Options for a streamed script-workspace file download.

    interface HttpDownloadFileOptions {
        url: string;
        path: string;
        headers?: Record<string, string>;
        maxBytes?: number;
    }
    Index
    url: string

    Absolute http or https URL.

    path: string

    Workspace-relative path using forward or backward slashes. Rejected when absolute, drive- or UNC-prefixed, containing .., longer than 512 bytes, deeper than 16 components, or crossing a link or reparse point.

    headers?: Record<string, string>

    Request headers. Client-owned framing headers are rejected exactly as in HTTP.SendRequest.

    maxBytes?: number

    Optional caller safety limit in bytes. Must be a non-negative integer up to Number.MAX_SAFE_INTEGER; exceeding it rejects with limit_exceeded. Omit for no product file-size cap.