Show / Hide Table of Contents

Interface IContentDownloader

Provides methods for downloading remote content files.

Namespace: VersOne.Epub.Environment
Assembly: VersOne.Epub.dll
Syntax
public interface IContentDownloader

Methods

View Source

DownloadAsync(string, string)

Starts downloading the remote content file.

Declaration
Task<Stream> DownloadAsync(string url, string userAgent)
Parameters
Type Name Description
string url

The absolute URI of the remote content file.

string userAgent

The value for the User-Agent header of the HTTP request.

Returns
Type Description
Task<Stream>

A task that represents the asynchronous download operation. The value of the TResult parameter contains the readable stream for the content of the remote content file.

  • View Source
In this article
Back to top Generated by DocFX