KrHttpDownloads.DownloadToFileAsync method
Streams an HTTP response body to a file, supporting very large payloads and optional resume. Returns the final file length in bytes.
public static Task<long> DownloadToFileAsync(HttpClient client, HttpRequestMessage request,
string filePath, bool resume = false, int bufferBytes = 1048576,
CancellationToken cancellationToken = default)
See Also
- class KrHttpDownloads
- namespace Kestrun.Client