Http downloader wrapper with Multi-Session support
Http client = new Http();
await client.Download("http://yourURL", "C:\yourOutputData");
using (MemoryStream stream = new MemoryStream())
{
Http client = new Http();
await client.Download("http://yourURL", stream);
// Doing something with the stream here
}
int Session = 4;
Http client = new Http();
await client.DownloadMultisession("http://yourURL", "C:\yourOutputData", Session);
await client.MergeMultisession("C:\yourOutputData");
public static async Task Main()
{
Http client = new Http();
client.DownloadProgress += YourProgress;
// Can be used with DownloadMultisession() as well
await client.Download("http://yourURL", "C:\yourOutputData");
await client.DownloadProgress -= YourProgress;
}
private static void YourProgress(object? sender, DownloadEvent e)
{
Console.Write("\r{0}%", e.ProgressPercentage);
}
Other usages will be published soon.