Constructs a new TransferManager.
The default fetch function to use.
The maximum amount to try to re-fetch a resource.
The default fetch function to use.
The maximum amount to try to re-fetch a resource.
The amount of maximum parallel downloads to allow.
The timeout in milliseconds to wait between retries. This timeout is multiplied with the number of retries. First retry waits for 0 ms, second retry for 500 ms, third for 1000 ms and so on.
Downloads a URL and returns the response.
Does not merge multiple requests to the same URL.
The URL or RequestInfo to download.
Optional extra parameters for the download.
Downloads a binary object. Merges downloads of string URLS if requested multiple times.
Note: This method merges multiple downloads of the same string URL to only one request. The init parameter is ignored if the download is merged. Call download instead to download the resource without merging.
The URL or RequestInfo to download
Optional extra parameters for the download
Downloads a JSON object. Merges downloads of string URLs if requested multiple times.
Note: This method merges multiple downloads of the same string URL to only one request. The init parameter is ignored if the download is merged. Call download instead to download the resource without merging.
The URL or RequestInfo to download
Optional extra parameters for the download.
Returns a default instance of TransferManager.
Generated using TypeDoc
TransferManager
for downloading URLs.Features:
The static method instance can be used to get a default constructed instance.