Http downloader wrapper with Multi-Session support
Http client = new Http(); await client.Download("http://yourURL", "C:\yourOutputData");Single-session using
Stream
s
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");Using
DownloadProgress
event to display download progress
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; }In your
YourProgress
event method
private static void YourProgress(object? sender, DownloadEvent e) { Console.Write("\r{0}%", e.ProgressPercentage); }
Other usages will be published soon.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4