示例#1
0
        public bool LoadConfig()
        {
            var configs = ConfigHelper.LoadServerConfig();

            _Config = new HttpServerConfigure();

            _Config.InitCommand(configs.CommandList);

            //设置主机头
            _Config.HostList    = configs.HostList;
            _Config.Port        = configs.Port;
            _Config.SendThreads = configs.SendThreads;

            MaxPostLength     = configs.MaxPostLength;
            MaxHeaderLines    = configs.MaxHeaderLines;
            MaxQueuedRequests = configs.MaxQueuedRequests;

            return(true);
        }
示例#2
0
 /// <summary>
 /// 初始化
 /// </summary>
 public HttpServer()
 {
     _Config = new HttpServerConfigure();
 }
示例#3
0
        public bool LoadConfig()
        {
            var configs =  ConfigHelper.LoadServerConfig();
            _Config = new HttpServerConfigure();

            _Config.InitCommand(configs.CommandList);

            //设置主机头
            _Config.HostList = configs.HostList;
            _Config.Port = configs.Port;
            _Config.SendThreads = configs.SendThreads;

            MaxPostLength = configs.MaxPostLength;
            MaxHeaderLines = configs.MaxHeaderLines;
            MaxQueuedRequests = configs.MaxQueuedRequests;

            return true;
        }
示例#4
0
 /// <summary>
 /// 初始化
 /// </summary>
 public HttpServer()
 {
     _Config = new HttpServerConfigure();
 }