using System;
using System.Collections.Generic;
using System.Net;
using System.Text;
namespace Store.Client.Apis
{
/////
///// 服务器
/////
//public class ServerHttpBase : ITransientDependency
//{
// ///
// /// 日志
// ///
// [Autowired]
// protected ILog _log { get; set; }
// ///
// /// 服务器配置
// ///
// [Autowired]
// protected IServerConfig _config { get; set; }
// public ServerHttpBase()
// {
// }
// ///
// /// 服务器请求
// ///
// ///
// ///
// public HttpResult ServerRequest(HttpItem item)
// {
// if (!item.URL.StartsWith("http"))
// {
// item.URL += _config.Host + item.URL;
// }
// item.Encoding = Encoding.UTF8;
// // ////item
// //#if PROXY
// // item.ProxyIp = "127.0.0.1:8080";
// //#endif
// HttpHelper http = new HttpHelper();
// HttpResult result = http.GetHtml(item);
// if (result.StatusCode == HttpStatusCode.OK)
// {
// if (!string.IsNullOrEmpty(result.Html))
// {
// if (result.Html[0] == 65279)
// {
// result.Html = result.Html.Remove(0, 1);
// }
// }
// }
// else
// {
// }
// return result;
// }
//}
}