elsa-core/src/modules/Elsa.Http/Contracts/IFileDownloader.cs
Sipke Schoorstra cb87d2ed82
Implement resumable downloads (#4448)
* Incremental work on persistent file cache

* Rename providers to handlers

* Implement zip file caching for resumable downloads

* Implement partial download for zipped files

* Allow executing workflows using GET verb

* Implement custom header for correlating downloads

* Rename FileName to Filename for consistency

* Update interface XML comment

* Cleanup

* Fix that source Downloadables were executed even when cached zip exists

* Make download correlation ID optional
2023-09-17 22:35:13 +02:00

14 lines
414 B
C#

using Elsa.Http.Options;
namespace Elsa.Http.Contracts;
/// <summary>
/// A general-purpose downloader of files from a given URL.
/// </summary>
public interface IFileDownloader
{
/// <summary>
/// Downloads a file from the specified URL.
/// </summary>
Task<HttpResponseMessage> DownloadAsync(Uri url, FileDownloadOptions? options = default, CancellationToken cancellationToken = default);
}