C# Class OpenGraph_Net.HttpDownloader

Afficher le fichier Open project: ghorsey/OpenGraph-Net Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

Gets the page.
public GetPage ( ) : string
Résultat string

GetPageAsync() public méthode

Gets the page asynchronosly
public GetPageAsync ( ) : Task
Résultat Task

HttpDownloader() public méthode

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.
Résultat System

HttpDownloader() public méthode

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.
Résultat System