Exemplo n.º 1
0
 private IList <NameValuePair> ParseQuery(string query, Encoding charset)
 {
     if (query != null && query.Length > 0)
     {
         return(URLEncodedUtils.Parse(query, charset));
     }
     return(null);
 }
Exemplo n.º 2
0
 private string EncodeUric(string fragment)
 {
     return(URLEncodedUtils.EncUric(fragment, Consts.Utf8));
 }
Exemplo n.º 3
0
 private string EncodePath(string path)
 {
     return(URLEncodedUtils.EncPath(path, Consts.Utf8));
 }
Exemplo n.º 4
0
 private string EncodeUrlForm(IList <NameValuePair> @params)
 {
     return(URLEncodedUtils.Format(@params, Consts.Utf8));
 }
Exemplo n.º 5
0
 private string EncodeUserInfo(string userInfo)
 {
     return(URLEncodedUtils.EncUserInfo(userInfo, Consts.Utf8));
 }