C# 클래스 TweetSource.Util.HttpUtil

Utility class that takes care of most HTTP encoding/decoding things
파일 보기 프로젝트 열기: nkuln/tweetsource

공개 메소드들

메소드 설명
EncodeFormPostData ( NameValueCollection postData ) : string

Note: This is not the same as the way we encode query string

Esc ( string s ) : string

Escape string according to RFC 3986 - http://blog.nerdbank.net/2009/05/uriescapedatapath-and.html

EscapeUriDataStringRfc3986 ( string value ) : string

Escapes a string according to the URI data string rules given in RFC 3986.

The Uri.EscapeDataString method is supposed to take on RFC 3986 behavior if certain elements are present in a .config file. Even if this actually worked (which in my experiments it doesn't), we can't rely on every host actually having this configuration element present.

GetQueryString ( string url ) : string

Extract query string from a URL

QueryStringToNameValueCollection ( string query ) : NameValueCollection

Parse query string to NameValueCollection

RemoveQueryString ( string url ) : string

Remove query string from a URL

메소드 상세

EncodeFormPostData() 공개 정적인 메소드

Note: This is not the same as the way we encode query string
public static EncodeFormPostData ( NameValueCollection postData ) : string
postData System.Collections.Specialized.NameValueCollection
리턴 string

Esc() 공개 정적인 메소드

Escape string according to RFC 3986 - http://blog.nerdbank.net/2009/05/uriescapedatapath-and.html
public static Esc ( string s ) : string
s string String to escape
리턴 string

EscapeUriDataStringRfc3986() 공개 정적인 메소드

Escapes a string according to the URI data string rules given in RFC 3986.
The Uri.EscapeDataString method is supposed to take on RFC 3986 behavior if certain elements are present in a .config file. Even if this actually worked (which in my experiments it doesn't), we can't rely on every host actually having this configuration element present.
public static EscapeUriDataStringRfc3986 ( string value ) : string
value string The value to escape.
리턴 string

GetQueryString() 공개 정적인 메소드

Extract query string from a URL
public static GetQueryString ( string url ) : string
url string URL
리턴 string

QueryStringToNameValueCollection() 공개 정적인 메소드

Parse query string to NameValueCollection
public static QueryStringToNameValueCollection ( string query ) : NameValueCollection
query string query string to parse
리턴 System.Collections.Specialized.NameValueCollection

RemoveQueryString() 공개 정적인 메소드

Remove query string from a URL
public static RemoveQueryString ( string url ) : string
url string URL
리턴 string