C# 클래스 ADBaseLibrary.Helpers.WebStream

상속: Stream, IDisposable
파일 보기 프로젝트 열기: maxpiva/AnimeOfflineDownloader 1 사용 예제들

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

비공개 메소드들

메소드 설명
ConvertCookieArraysToCookieCollection ( ArrayList al, string strHost ) : CookieCollection
ConvertCookieHeaderToArrayList ( IEnumerable headers ) : ArrayList
PopulateHeaders ( HttpRequestMessage msg, NameValueCollection headers ) : void

메소드 상세

CreateStream() 공개 정적인 메소드

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
리턴 Task

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

Flush() 공개 메소드

public Flush ( ) : void
리턴 void

Get() 공개 정적인 메소드

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
리턴 Task

GetAllCookiesFromHeader() 공개 정적인 메소드

public static GetAllCookiesFromHeader ( IEnumerable headers, string strHost ) : CookieCollection
headers IEnumerable
strHost string
리턴 System.Net.CookieCollection

Post() 공개 정적인 메소드

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
리턴 Task

Read() 공개 메소드

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
리턴 int

Seek() 공개 메소드

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
리턴 long

SetLength() 공개 메소드

public SetLength ( long value ) : void
value long
리턴 void

Write() 공개 메소드

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
리턴 void