ProtocolVersion = HttpVersion.Version11, // Default value is HTTP 1.1 Headers = new WebHeaderCollection(), // Add your custom headers RequestConfiguration = // config and customize request headersĪutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate,ĬookieContainer = new CookieContainer(), // Add your cookies Timeout = 1000, // timeout (millisecond) per stream block reader, default values is 1000 TempDirectory = "C:\\temp", // Set the temp path for buffering chunk files, the default path is Path.GetTempPath() ParallelDownload = true, // download parts of file as parallel or not. OnTheFlyDownload = false, // caching in-memory or not? default values is true MaxTryAgainOnFailover = int.MaxValue, // the maximum number of times to fail MaximumBytesPerSecond = 1024 * 1024, // download speed limited to 1MB/s, default values is zero or unlimited NET Core command line interface: dotnet add package DownloaderĬreate your custom configuration: var downloadOpt = new DownloadConfiguration()īufferBlockSize = 10240, // usually, hosts support max to 8000 bytes, default values is 8000ĬhunkCount = 8, // file parts to download, default value is 1 Get it on NuGet: PM> Install-Package Downloader Net Standard 2 and you can add that in your. This is a multipart downloader with asynchronous progress events. Net Core 3.1+ supporting □ĭownloader is a modern, fluent, asynchronous, testable and portable library for. □ Fast and reliable multipart downloader with.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |