C# Class OpenGraph_Net.HttpDownloader

Datei anzeigen Open project: ghorsey/OpenGraph-Net Class Usage Examples

Public Methods

Method Description
GetPage ( ) : string

Gets the page.

GetPageAsync ( ) : Task

Gets the page asynchronosly

HttpDownloader ( Uri url, string referer, string userAgent ) : System

Initializes a new instance of the HttpDownloader class.

HttpDownloader ( string url, string referer, string userAgent ) : System

Initializes a new instance of the HttpDownloader class.

Private Methods

Method Description
CheckMetaCharSetAndReEncode ( Stream memStream, string html ) : string

Checks the meta character set and re encode.

ProcessContent ( HttpWebResponse response ) : string

Processes the content.

SetEncodingFromHeader ( HttpWebResponse response ) : void

Sets the encoding from header.

Method Details

GetPage() public method

Gets the page.
public GetPage ( ) : string
return string

GetPageAsync() public method

Gets the page asynchronosly
public GetPageAsync ( ) : Task
return Task

HttpDownloader() public method

Initializes a new instance of the HttpDownloader class.
public HttpDownloader ( Uri url, string referer, string userAgent ) : System
url System.Uri The URL.
referer string The referer.
userAgent string The user agent.
return System

HttpDownloader() public method

Initializes a new instance of the HttpDownloader class.
public HttpDownloader ( string url, string referer, string userAgent ) : System
url string The URL.
referer string The referer.
userAgent string The user agent.
return System