public string GetUrl() { if (Method == HttpMethodType.Get && ValueMap.Count > 0) { var query = string.Join("&", ValueMap.Select(item => $"{item.Key.UrlEncode()}={item.Value.UrlEncode()}")); return($"{RawUrl}?{query}"); } else { return(RawUrl); } }
public string GetPostString() { return(string.Join("&", ValueMap.Select(item => $"{item.Key.UrlEncode()}={item.Value.UrlEncode()}"))); }