@vpalmisano/webrtcperf
    Preparing search index...

    Function downloadUrl

    • Downloads the specified url to a local file or returning the file content as DownloadData object.

      Parameters

      • url: string

        The remote url to download.

      • Optionalauth: string

        The basic authentication (user:password).

      • OptionaloutputLocationPath: string

        The file output. If not specified, the download content will be returned as DownloadData instance.

      • Optionalrange: string

        The HTTP byte range to download (e.g. 10-100).

      • timeout: number = 60000

        The download timeout in milliseconds.

      Returns Promise<void | DownloadData>