C# Class ADBaseLibrary.Helpers.WebStream

Inheritance: Stream, IDisposable
Afficher le fichier Open project: maxpiva/AnimeOfflineDownloader Class Usage Examples

Méthodes publiques

Méthode Description
CreateStream ( string url, string postData, string encoding, string postencoding = "application/x-www-form-urlencoded", string uagent = null, NameValueCollection headers = null, CookieCollection cookies = null, int timeout = 10000, bool redirect = true, string referer = null, IWebProxy proxy = null ) : Task
Dispose ( ) : void
Flush ( ) : void
Get ( string url, string encoding, string uagent = null, NameValueCollection headers = null, CookieCollection cookies = null, int timeout = 10000, bool redirect = true, string referer = null, IWebProxy proxy = null ) : Task
GetAllCookiesFromHeader ( IEnumerable headers, string strHost ) : CookieCollection
Post ( string url, string>.Dictionary postdata, string encoding, string uagent = null, NameValueCollection headers = null, CookieCollection cookies = null, int timeout = 10000, bool redirect = true, string referer = null, IWebProxy proxy = null ) : Task
Read ( byte buffer, int offset, int count ) : int
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte buffer, int offset, int count ) : void

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
ConvertCookieArraysToCookieCollection ( ArrayList al, string strHost ) : CookieCollection
ConvertCookieHeaderToArrayList ( IEnumerable headers ) : ArrayList
PopulateHeaders ( HttpRequestMessage msg, NameValueCollection headers ) : void

Method Details

CreateStream() public static méthode

public static CreateStream ( string url, string postData, string encoding, string postencoding = "application/x-www-form-urlencoded", string uagent = null, NameValueCollection headers = null, CookieCollection cookies = null, int timeout = 10000, bool redirect = true, string referer = null, IWebProxy proxy = null ) : Task
url string
postData string
encoding string
postencoding string
uagent string
headers System.Collections.Specialized.NameValueCollection
cookies System.Net.CookieCollection
timeout int
redirect bool
referer string
proxy IWebProxy
Résultat Task

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

Flush() public méthode

public Flush ( ) : void
Résultat void

Get() public static méthode

public static Get ( string url, string encoding, string uagent = null, NameValueCollection headers = null, CookieCollection cookies = null, int timeout = 10000, bool redirect = true, string referer = null, IWebProxy proxy = null ) : Task
url string
encoding string
uagent string
headers System.Collections.Specialized.NameValueCollection
cookies System.Net.CookieCollection
timeout int
redirect bool
referer string
proxy IWebProxy
Résultat Task

GetAllCookiesFromHeader() public static méthode

public static GetAllCookiesFromHeader ( IEnumerable headers, string strHost ) : CookieCollection
headers IEnumerable
strHost string
Résultat System.Net.CookieCollection

Post() public static méthode

public static Post ( string url, string>.Dictionary postdata, string encoding, string uagent = null, NameValueCollection headers = null, CookieCollection cookies = null, int timeout = 10000, bool redirect = true, string referer = null, IWebProxy proxy = null ) : Task
url string
postdata string>.Dictionary
encoding string
uagent string
headers System.Collections.Specialized.NameValueCollection
cookies System.Net.CookieCollection
timeout int
redirect bool
referer string
proxy IWebProxy
Résultat Task

Read() public méthode

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
Résultat int

Seek() public méthode

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
Résultat long

SetLength() public méthode

public SetLength ( long value ) : void
value long
Résultat void

Write() public méthode

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
Résultat void