コード例 #1
0
ファイル: HttpClient.cs プロジェクト: li-keli/LiGather
        /// <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 : "");
        }
コード例 #2
0
ファイル: HttpClient.cs プロジェクト: CBDlkl/LiGather
 /// <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 : "";
 }