Beispiel #1
0
        /// <summary>
        /// 创建Post请求
        /// </summary>
        public string ClientPost()
        {
            var client  = new LiHttp();
            var context = client.Create <string>(HttpMethod.Post, "", data: new { }).Send();

            return(context.IsValid() ? context.Result : "");
        }
Beispiel #2
0
 /// <summary>
 /// 创建Post请求
 /// </summary>
 public string ClientPost()
 {
     var client = new LiHttp();
     var context = client.Create<string>(HttpMethod.Post, "", data: new { }).Send();
     return context.IsValid() ? context.Result : "";
 }