Skip to content

aalitor/AltoHttp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AltoHttp

This simple library provides downloading over Http. It supports Pause and Resume in both for download and download queue

• Download file with just one line of code

• Get most useful properties of the download source such as ContentLength, Resumeability, ServerFileName..

• Due to event based programming, managing downloads is so easy

• Reports progress and speed every time when the progress is changed

• Create download queue with DownloadQueue and manage your download list

Nuget

Get AltoHttp at Nuget
Install-Package AltoHttp

#Usage

Downloading is so simple
HttpDownloader downloader = new HttpDownloader(targetUrl,targetPath);
downloader.Start(); 
//PAUSE
downloader.Pause();
//RESUME
downloader.Resume(); //downloader.Resume(filePathToResume) resumes from the existing file

Queue using

DownloadQueue myQueue = new DownloadQueue();
myQueue.Add(targetUrl1,targetPath1);
myQueue.Add(targetUrl2,targetPath2);
myQueue.StartAsync();
//PAUSE
myQueue.Pause();
//RESUME
myQueue.ResumeAsync();

Chrome integration

private void btnChromeIntegration_Click(object sender, EventArgs e)
{
    try
    {
        AltoHttp.BrowserIntegration.Chrome.AllInOneIntegrator.TryAddIntegration(Directory.GetCurrentDirectory(),
            Assembly.GetExecutingAssembly().Location);
        MessageBox.Show("Integration added succesfully!");
    }
    catch (Exception ex)
    {
        MessageBox.Show(ex.Message);
    }
}

New Features:

• Ability to edit Http request and response with events

• Using DownloadInfoReceived event you can ensure the headers (Content-Length, Resumeability, FileName) are received

New Features on 01.01.2021

• Resume capability improved to be able to resume on some sites that uses chunked stream e.g Google Drive

• Native messaging methods added for who wants to integrate with browser using extension

• To prevent resume on file corruption, file validation based on MD5 added

• New exceptions defined to be able to handle exceptions in UI

• Download in some sites which Content-Length returns -1 (Unknown) succesfully handled

• DemoApplication changed and improved

New Features on 02.10.2021, Version 1.5.2

• Chrome browser integration provider methods have been added.Integration is done with just one line of code

• DemoApplication changed and improved

Demo Application

About

AltoHttp provides fast and easy download management

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages