GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - CollapseLauncher/Hi3Helper.Http: Http downloader with Multi-Session support

BranchesTags
Open more actions menu

Latest commit

 

History

320 Commits
320 Commits

Folders and files

NameName
Last commit message
Last commit date
Legacy
Legacy
 
 
Test
Test
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
ChunkRange.cs
ChunkRange.cs
 
 
ChunkSession.cs
ChunkSession.cs
 
 
DownloadClient.cs
DownloadClient.cs
 
 
DownloadSpeedLimiter.cs
DownloadSpeedLimiter.cs
 
 
Hi3Helper.Http.Universal.csproj
Hi3Helper.Http.Universal.csproj
 
 
Hi3Helper.Http.csproj
Hi3Helper.Http.csproj
 
 
HttpResponseInputStream.cs
HttpResponseInputStream.cs
 
 
IO.cs
IO.cs
 
 
JsonContext.cs
JsonContext.cs
 
 
LICENSE
LICENSE
 
 
LogEvent.cs
LogEvent.cs
 
 
Metadata.cs
Metadata.cs
 
 
ProgressDelegates.cs
ProgressDelegates.cs
 
 
README.md
README.md
 
 
Utility.cs
Utility.cs
 
 
packages.lock.json
packages.lock.json
 
 

Repository files navigation

Hi3Helper.Http

Http downloader wrapper with Multi-Session support

Usage

Single-session

Http client = new Http();
await client.Download("http://yourURL", "C:\yourOutputData");

Single-session using Streams

using (MemoryStream stream = new MemoryStream())
{
    Http client = new Http();
    await client.Download("http://yourURL", stream);
    
    // Doing something with the stream here
}

Multi-session

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

In your method

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.

About

Http downloader with Multi-Session support

Resources

Readme
MIT license
Activity
Custom properties

Stars

6 stars

Watchers

2 watching

Forks

4 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.